You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Hao Zhong (JIRA)" <ji...@apache.org> on 2017/03/17 01:25:41 UTC
[jira] [Created] (ARIES-1703) Versions do not match
Hao Zhong created ARIES-1703:
--------------------------------
Summary: Versions do not match
Key: ARIES-1703
URL: https://issues.apache.org/jira/browse/ARIES-1703
Project: Aries
Issue Type: Bug
Components: Subsystem
Affects Versions: subsystem-2.0.8
Reporter: Hao Zhong
Priority: Blocker
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.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)