[ https://issues.apache.org/jira/browse/FELIX-5850?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Baptiste Onofré resolved FELIX-5850. ----------------------------------------- Resolution: Not A Problem Fix Version/s: (was: utils-1.11.2) There's no problem with the current source. Sorry for the noise. > ResourceBuilder should do deal with null bundle manifest version > ---------------------------------------------------------------- > > Key: FELIX-5850 > URL: https://issues.apache.org/jira/browse/FELIX-5850 > Project: Felix > Issue Type: Bug > Components: Utils > Reporter: Jean-Baptiste Onofré > Assignee: Jean-Baptiste Onofré > Priority: Major > > The {{ResourceBuilder#doBuild}} should deal with empty (null) bundle manifest > version. > We should do: > {code} > private static String getBundleManifestVersion(Map<String, String> > headerMap) { > return headerMap.get(Constants.BUNDLE_MANIFESTVERSION); > } > ... > // Verify that only manifest version 2 is specified. > String manifestVersion = getBundleManifestVersion(headerMap); > if (!"2".equals(manifestVersion)) { > throw new BundleException("Bundle-ManifestVersion must be 2 but > is: " + manifestVersion); > } > {code} > I will provide a PR (and test with Karaf itest). -- This message was sent by Atlassian JIRA (v7.6.3#76005)