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

The Active Installs page can freeze the browser if there's an exception while retrieving the counter value

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 11.10.3
    • Fix Version/s: 12.1-rc-1, 11.10.4
    • Component/s: Active Installs
    • Labels:
      None
    • Difficulty:
      Easy
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      The JavaScript code used to display the counters doesn't check if the value returned from the server is a number (integer). It takes each character (digit) from the value and generates some HTML. If the value is a long stacktrace generated from the server then it will generate a huge HTML structure (a list item for each character in the stacktrace) which freezes the browser.

      Moreover, the requests made to retrieve the counter value are synchronous which also blocks the browser.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mflorea Marius Dumitru Florea
                Reporter:
                mflorea Marius Dumitru Florea
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

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