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

Fix nuxeoctl management of packages that depend upon nuxeo-jsf-ui

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.10, 11.x
    • Fix Version/s: 2021.0

      Description

      nuxeoctl incorrectly installs packages that contain install/bundles-jsf-ui before package nuxeo-jsf-ui is installed. In particular, the files in the install/bundles-jsf-ui are excluded from the installation which corrupts the integrity of the server startup.

      Steps to reproduce:

      mkdir /tmp/staging

      Download hotfix 01 through 23 to /tmp/staging
      Download nuxeo-jsf-ui-10.10.0.zip to /tmp/staging
      Download nuxeo-spreadsheet.1.4.3.zip to /tmp/staging

      $NUXEO_HOME/bin/nuxeoctl stop
      $NUXEO_HOME/bin/nuxeoctl --offline -q --accept true --relax true mp-purge
      $NUXEO_HOME/bin/nuxeoctl mp-list
      # ensure nothing is installed
      
      find /tmp/staging -name '*HF*' | while read hf; do\
        $NUXEO_HOME/bin/nuxeoctl --offline --nodeps --accept true --relax true mp-add $hf;\
        $NUXEO_HOME/bin/nuxeoctl --accept true mp-install $hf;\
      done
      $NUXEO_HOME/bin/nuxeoctl --offline --nodeps --accept true --relax true mp-install\
       /tmp/staging/nuxeo-jsf-ui-10.10.0.zip\
       /tmp/staging/nuxeo-spreadsheet.1.4.3.zip
      $NUXEO_HOME/bin/nuxeoctl start
      
      grep $NUXEO_HOME/nxserver/bundles/nuxeo-platform-spreadsheet-jsf-10.10.jar
      # JAR exists
      
      # Repeat except substitute this marketplace installation - note the order is reversed:
      $NUXEO_HOME/bin/nuxeoctl --offline --nodeps --accept true --relax true mp-install\
       /tmp/staging/nuxeo-spreadsheet.1.4.3.zip\
       /tmp/staging/nuxeo-jsf-ui-10.10.0.zip
      
      grep $NUXEO_HOME/nxserver/bundles/nuxeo-platform-spreadsheet-jsf-10.10.jar
      # JAR missing
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: