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

Version of jquery not matching syntax on Extension Manager Application extension (using .size property, while it has been removed in jquery 3.0)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Major
    • None
    • 14.10.19, 15.10
    • None
    • Used official docker image and basic docker-compose setup provided on github.

      Tried with xWiki version 14.10.19 (LTS) and 15.10 (stable)
    • Unknown

    Description

      While using the Extension Manager Application (developed by xWiki team) to manage the extensions, I have noticed a bug under "Licenses" tab under the extension.

      Buttons "get trial", "buy" and "Auto upgrade" seem to be broken (nothing happens on click).

       

      After some investigation I suspect the problem is on this line of code (minimized version from browser debugger):

       

      0 < a('#licenseManager-display td.type').size()

       

      Problem in this line is that .size method has been removed in jQuery 3.0. and was replaced with .length.

      source: https://api.jquery.com/size/

      This solution uses jQuery +3.0 (3.7.1 I believe?) so I suspect this could be the issue why the buttons are broken.

       

      This is the file that was inspected for this issue:

       

      The file on github:

      https://github.com/xwikisas/application-licensing/blob/8f299248a771514bc0b2718d586a2c624d0166cb/application-licensing-licensor/application-licensing-licensor-ui/src/main/resources/Licenses/WebHome.xml#L620

       

      Visual of the "License" page with broken buttons visible:

       

       

      Attachments

        Activity

          People

            surli Simon Urli
            ivanstarcevic Ivan S
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: