Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-4071

Error on save after removing all content from a document section

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.0 M2
    • 2.0 M1
    • {Unused} Core
    • None
    • section,section edit,xwiki/2.0
    • Unit
    • Unknown

    Description

      Scenario:

      • edit a section from a document with multiple sections
      • remove all the content from the section
      • save

      Exception:

      java.lang.IndexOutOfBoundsException: Index: 4, Size: 4
      	at java.util.ArrayList.RangeCheck(ArrayList.java:546)
      	at java.util.ArrayList.remove(ArrayList.java:389)
      	at org.xwiki.rendering.block.AbstractBlock.replaceChild(AbstractBlock.java:153)
      	at com.xpn.xwiki.doc.XWikiDocument.updateDocumentSection(XWikiDocument.java:4808)
      	at com.xpn.xwiki.web.SaveAction.save(SaveAction.java:133)
      	at com.xpn.xwiki.web.SaveAction.action(SaveAction.java:193)
      	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:215)
      	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
      

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            jvdrean Jean-Vincent Drean
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: