Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-20578

Order at first jsf-ui or web-ui packages to workaround the conditional install issue

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 8.4-SNAPSHOT
    • Fix Version/s: 8.10

      Description

      Some packages now have a conditional dependency on nuxeo-jsf-ui or nuxeo-web-ui package(s), thus some of their bundles are deployed or not depending on if that optional dependency is installed or not.

      This leads to incomplete installation if modules are all installed together (see NXBT-1281) and also seems to be an issue on the following failing jobs:

      https://qa.nuxeo.org/jenkins/view/reports/job/master/job/addons_FT_nuxeo-media-publishing-master/
      https://qa.nuxeo.org/jenkins/view/reports/job/master/job/addons_FT_nuxeo-showcase-content-sample-master/

      as they are stating missing dependencies at startup.

      Depending on the package install order, we may end up with missing bundles:

      $./bin/nuxeoctl mp-add nuxeo-jsf-ui nuxeo-drive
      $ grep if= packages/store/*/install.xml
      packages/store/nuxeo-drive-1.6.3-SNAPSHOT/install.xml:    <update file="${package.root}/install/bundles-jsf-ui" todir="${env.bundles}" if="Packages.contains('nuxeo-jsf-ui')" />
      packages/store/nuxeo-drive-1.6.3-SNAPSHOT/install.xml:    <update file="${package.root}/install/bundles-web-ui" todir="${env.bundles}" if="Packages.contains('nuxeo-web-ui')" />
      $ ls packages/store/nuxeo-drive-1.6.3-SNAPSHOT/install/bundles-jsf-ui/
      nuxeo-drive-jsf-8.4-SNAPSHOT.jar
      $ ./bin/nuxeoctl mp-install nuxeo-drive --accept yes -q
      $ ./bin/nuxeoctl mp-install nuxeo-jsf-ui --accept yes -q
      $ find nxserver -name nuxeo-drive-jsf-8.4-SNAPSHOT.jar
      # => KO missing bundle
      
      $ ./bin/nuxeoctl mp-uninstall nuxeo-drive --accept yes -q
      $ ./bin/nuxeoctl mp-install nuxeo-drive --accept yes -q
      $ find nxserver -name nuxeo-drive-jsf-8.4-SNAPSHOT.jar
      nxserver/bundles/nuxeo-drive-jsf-8.4-SNAPSHOT.jar
      # => OK if nuxeo-drive is installed after nuxeo-jsf-ui

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: