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

The image lightbox doesn't work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 14.1
    • 14.1-rc-1
    • Image
    • High
    • Unknown
    • N/A
    • N/A

    Description

      After enabling the image lightbox from the Administration the result I get is:

      • a black transparent square on top of the Applications panel
      • hovering over an image from the page content doesn't show any toolbar

      Checking the JavaScript console I noticed that both:

      • /xwiki/webjars/wiki:xwiki/webjar-blueimp-gallery/css/blueimp-gallery.min.css
      • /xwiki/webjars/wiki:xwiki/webjar-blueimp-gallery/js/blueimp-gallery-bundle.min.js

      failed to be loaded. After further inspection it seems the org.xwiki.contrib:webjar-blueimp-gallery WebJar is not installed, although org.xwiki.platform:xwiki-platform-image-lightbox-webjar, which depends on it, is installed, and in fact a core extension.

      The reason seems to be in https://github.com/xwiki/xwiki-platform/blob/xwiki-platform-14.1-rc-1/xwiki-platform-distribution/xwiki-platform-distribution-war-dependencies/pom.xml#L687

      Make sure to not package contrib extensions since they need to remain upgradeable

      Maybe the problem is that org.xwiki.platform:xwiki-platform-image-lightbox-ui was added as a dependency of xwiki-platform-distribution-ui-base instead of xwiki-platform-distribution-flavor-common? (which has some contrib deps that end-up installed correctly).

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            mflorea Marius Dumitru Florea
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: