Details
-
Bug
-
Status: Open
-
Blocker
-
Resolution: Unresolved
-
subsystem-2.0.8
-
None
-
None
Description
The ProvideBundleCapability.initializeAttributes method stores wrong versions. The buggy code is as follow:
Clause clause = bsn.getClauses().get(0);
Collection<Attribute> attributes = clause.getAttributes();
Map<String, Object> result = new HashMap<String, Object>(attributes.size() + 2);
result.put(NAMESPACE, clause.getPath());
result.put(ATTRIBUTE_BUNDLE_VERSION, version.getValue());
To store the correct version, the last line shall be:
result.put(ATTRIBUTE_BUNDLE_VERSION, version.getVersion());
Indeed, a similar bug is reported and fixed. Pease check ARIES-1453.