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

Velocity macro error in Syntax Guide when xwiki.section.depth=1

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.4.4
    • Fix Version/s: 6.1-rc-1
    • Component/s: Help
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      As reported by Kai Sen on the users list:
      If one sets xwiki.section.depth=1 in the xwiki.cfg, then the XWiki.XWikiSyntax page does not show any content, but a velocity macro error; snippet from stack trace:

      Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
      	at java.util.ArrayList.rangeCheck(ArrayList.java:604)
      	at java.util.ArrayList.get(ArrayList.java:382)
      	at sun.reflect.GeneratedMethodAccessor162.invoke(Unknown Source)
      

      Obviously filtering out the relevant sections from the subpages does not work when the xwiki.section.depth is changed

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                camil7 Clemens Robbenhaar
                Reporter:
                camil7 Clemens Robbenhaar
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: