Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-1703

Versions do not match

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • subsystem-2.0.8
    • None
    • Subsystem
    • 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.

      Attachments

        1. aries.patch
          0.9 kB
          Hao Zhong

        Activity

          People

            Unassigned Unassigned
            haozhong Hao Zhong
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: