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

installed packages not visible in UI

    XMLWordPrintable

    Details

      Description

      When changing the nuxeo.mp.dir value in nuxeo.conf, installed packages are not visible in Admin / Update Center / Local Packages. (see installedPackagesUI.png)

      But they are with nuxeoctl:

      FrantzMBP:bin ffischer$ ./nuxeoctl mp-list
      Detected Tomcat server.
      Nuxeo home:          /Users/ffischer/nuxeo-cap-7.10-tomcat
      Nuxeo configuration: /Users/ffischer/nuxeo-cap-7.10-tomcat/bin/nuxeo.conf
      Include template: /Users/ffischer/nuxeo-cap-7.10-tomcat/templates/common-base
      Include template: /Users/ffischer/nuxeo-cap-7.10-tomcat/templates/common
      Include template: /Users/ffischer/nuxeo-cap-7.10-tomcat/templates/default
      Include template: /Users/ffischer/nuxeo-cap-7.10-tomcat/templates/drive
      Local packages:
      hotfix     started	nuxeo-7.10-HF01 (id: nuxeo-7.10-HF01-1.0.0)
      hotfix     started	nuxeo-7.10-HF02 (id: nuxeo-7.10-HF02-1.0.0)
      hotfix     started	nuxeo-7.10-HF03 (id: nuxeo-7.10-HF03-1.0.0)
      hotfix     started	nuxeo-7.10-HF04 (id: nuxeo-7.10-HF04-1.0.0)
      hotfix     started	nuxeo-7.10-HF05 (id: nuxeo-7.10-HF05-1.0.0)
      hotfix     started	nuxeo-7.10-HF06 (id: nuxeo-7.10-HF06-1.0.0)
      hotfix     started	nuxeo-7.10-HF07 (id: nuxeo-7.10-HF07-1.0.0)
      hotfix     started	nuxeo-7.10-HF08 (id: nuxeo-7.10-HF08-1.0.0)
      hotfix     started	nuxeo-7.10-HF09 (id: nuxeo-7.10-HF09-1.0.0)
      hotfix     started	nuxeo-7.10-HF10 (id: nuxeo-7.10-HF10-1.0.0)
      hotfix     started	nuxeo-7.10-HF11 (id: nuxeo-7.10-HF11-1.0.0)
      hotfix     started	nuxeo-7.10-HF12 (id: nuxeo-7.10-HF12-1.0.1)
      hotfix     started	nuxeo-7.10-HF13 (id: nuxeo-7.10-HF13-1.0.1)
      hotfix     started	nuxeo-7.10-HF14 (id: nuxeo-7.10-HF14-1.0.0)
      hotfix     started	nuxeo-7.10-HF15 (id: nuxeo-7.10-HF15-1.0.0)
      hotfix     started	nuxeo-7.10-HF16 (id: nuxeo-7.10-HF16-1.0.0)
      hotfix     started	nuxeo-7.10-HF17 (id: nuxeo-7.10-HF17-1.0.0)
      hotfix     started	nuxeo-7.10-HF18 (id: nuxeo-7.10-HF18-1.0.1)
      hotfix     started	nuxeo-7.10-HF19 (id: nuxeo-7.10-HF19-1.0.0)
       addon     started	cas2-authentication (id: cas2-authentication-1.3.4)
       addon     started	nuxeo-dam (id: nuxeo-dam-6.1.4)
       addon  downloaded	nuxeo-diff (id: nuxeo-diff-1.6.5)
       addon     started	nuxeo-drive (id: nuxeo-drive-1.5.4)
       addon  downloaded	nuxeo-liveconnect (id: nuxeo-liveconnect-1.0.2)
       addon  downloaded	nuxeo-review-workflows-dashboards (id: nuxeo-review-workflows-dashboards-1.0.1)
       addon  downloaded	nuxeo-salesforce (id: nuxeo-salesforce-1.0.1)
       addon  downloaded	nuxeo-showcase-content (id: nuxeo-showcase-content-1.0.0)
       addon  downloaded	nuxeo-spreadsheet (id: nuxeo-spreadsheet-1.1.4)
       addon     started	nuxeo-virtualnavigation (id: nuxeo-virtualnavigation-1.1.4)
       addon  downloaded	nuxeo-web-mobile (id: nuxeo-web-mobile-1.7.4)
      

      The bean reading the packages (org.nuxeo.connect.client.jsf.AppCenterViewsManager) when reading the installed packages uses at some point in the stack PackagePersistence which retrieves the environment like this:

              Environment env = Environment.getDefault();
              File mpDir = new File(env.getProperty(Environment.NUXEO_MP_DIR, Environment.DEFAULT_MP_DIR));

      It seems the Environment default instance has a nuxeo.mp.dir of null thus setting the default one and never finding the packages.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours
                3h