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

Incorrect HTML generated for lists with many items

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.840
    • Fix Version/s: 1.2 M1
    • Component/s: None
    • Labels:
      None
    • keywords:
      HTML list
    • Similar issues:

      Description

      XWiki fails to render correct HTML for lists if the number of items exceeds a system-dependent threshold.
      See this mailing-list thread for details:

      Hi,

      Interesting.. On our install it only fails at 791
      http://www.xwiki.org/xwiki/bin/view/Test/TestBigList

      The only thing I see would be a "stack" size issue that makes it fail.
      It will probably mean some work to make it independent of recursive call
      if there are.

      You should report a bug in http://jira.xwiki.org

      Ludovic

      Robin Fernandes a écrit :

      • Hide quoted text -
        > Hi,
        >
        > This script correctly generates the following HTML:
        >
        > #foreach ($number in [1..320])
        > * hello $number
        > #end
        >
        > <ul class="star">
        > <li>hello 1</li>
        > <li>hello 2</li>
        > [...]
        > <li>hello 319</li>
        > <li>hello 320</li>
        > </ul>
        >
        >
        > However this script generates the wrong html:
        >
        > #foreach ($number in [1..321])
        > * hello $number
        > #end
        >
        > <strong class="strong"> hello 1
        > </strong> hello 2
        > <strong class="strong"> hello 3
        > </strong> hello 4
        > [...]
        > <strong class="strong"> hello 319
        > </strong> hello 320
        > <strong class="strong"> hello 321<p class="paragraph"/>
        >
        >
        > Is this an XWiki problem?

        Attachments

          Activity

            People

            Assignee:
            sdumitriu Sergiu Dumitriu
            Reporter:
            rewbs Robin Fernandes
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: