Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-3252

Version should not ignore SNAPSHOT classifier

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 4.3.2
    • updatemechanism

      We have used some Magnolia and STK/ETK SNAPSHOT jars for a while on our central development repository and upgraded to final releases when they became available. The version numbers in the configuration workspace still say "4.3.2-SNAPSHOT" and "1.3.1-SNAPSHOT" though.

      Javadoc for info.magnolia.module.model.Version says: "Format is x.y.z-classifier. y,z and classifier are optional. The classifier string is ignored in version comparisons." I feel this could result in problems if version handler are changed during the SNAPSHOT phase. We install the SNAPSHOT jar, the module version is set to a SNAPSHOT version in the configuration workspace, but when we later upgrade to the release jar the Version class doesn't think the release version number is more recent, so the version handler won't be executed again.

      I feel it would be good to modify the Version class to reflect that version "x.y.z" is more recent than "x.y.z-SNAPSHOT".

        Acceptance criteria

              Unassigned Unassigned
              breun Nils Breunese
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD