-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 5.4
-
Fix Version/s: 5.8.0-HF14, 5.9.4
-
Component/s: Runtime, Update Center
-
Tags:
-
Sprint:DevOps Sprint 3
The "Deployed bundles" list of the "Admin Center/Nuxeo Distribution" tab is not listing the Studio bundles because of the following code:
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.