Uploaded image for project: 'Jackrabbit FileVault'
  1. Jackrabbit FileVault
  2. JCRVLT-146

Package Manager should use osgiCompare to determine version order

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.30
    • 3.1.38
    • Packaging
    • None

    Description

      The method that the package manager uses to compare versions should use the osgiCompare to be in-line with the OSGi container's functionality.
      This will be more predictable for any jackrabbit/oak/sling user as they (probably) already understand the OSGi versioning. A customer will only have to learn one comparison method as well.

      This change will it will treat the '-' and '.' equally as version segment separator.

      compareTo:
      6.1.58-FP3-R002 < 6.1.58, i.e. 6.1.58 wins!

      osgiCompareTo:
      6.1.58-FP3-R002 > 6.1.58, i.e. 6.1.58-FP3-R002 wins!

      see the tests in: https://svn.apache.org/viewvc/jackrabbit/commons/filevault/trunk/vault-core/src/test/java/org/apache/jackrabbit/vault/packaging/VersionTest.java?view=markup

      Attachments

        Activity

          People

            Unassigned Unassigned
            tripod Tobias Bocanegra
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: