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

Admin Center/Nuxeo Distribution tab must list all registered bundles

    XMLWordPrintable

    Details

    • Tags:
    • Sprint:
      DevOps Sprint 3

      Description

      The "Deployed bundles" list of the "Admin Center/Nuxeo Distribution" tab is not listing the Studio bundles because of the following code:

      org.nuxeo.ecm.admin.runtime.RuntimeInstrospection.getBundleSimplifiedInfo(Bundle)
      try {
          ZipFile zFile = new ZipFile(jarFile);
          Enumeration<ZipEntry> entries = (Enumeration<ZipEntry>) zFile.entries();
          while (entries.hasMoreElements()) {
              ZipEntry entry = entries.nextElement();
              if (entry.getName().endsWith("pom.properties")) {
                  InputStream pomStream = zFile.getInputStream(entry);
                  PropertyResourceBundle prb = new PropertyResourceBundle(
                          pomStream);
                  String version = prb.getString("version");
                  result = new SimplifiedBundleInfo(
                          bundle.getSymbolicName(), version);
                  pomStream.close();
                  break;
              }
          }
      } catch (Exception e) {
          // NOP
      }

      Some bundles which are effectively registered in the runtime do not appear because the version detection based on the pom.properties file failed.

      Even if a version is unknown, the bundle must be listed.
      There should be a fallback for the version detection on bundles not built by Maven.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 hour
                  1h
                  Remaining:
                  Remaining Estimate - 1 hour
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified