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/23 02:07:41 UTC

[jira] [Commented] (ARIES-1703) Versions do not match

    [ https://issues.apache.org/jira/browse/ARIES-1703?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15937564#comment-15937564 ] 

Hao Zhong commented on ARIES-1703:
----------------------------------

A patch is attached.

> 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
>         Attachments: aries.patch
>
>
> 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)