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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 6.1-rc-1
    • 5.4.4
    • Help
    • None
    • Unknown
    • N/A
    • N/A

    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

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

              Dates

                Created:
                Updated:
                Resolved: