Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-14226

TimestampSnapshotComparator is incompatible with artifacts that have a multi-element base-revision

    XMLWordPrintable

    Details

    • Severity:
      High

      Description

      The TimestampSnapshotComparator compare method that compares two different "snapshotVersion" sections according to timestamps is not compatible with maven-metadata.xml artifacts that contain a base-revision that has more than one element in it. For example:

      <snapshotVersion>
      <extension>pom</extension>
      <value>1.9.2.3-XWT-20170510.085558-2</value>
      <updated>20170510085558</updated>
      </snapshotVersion>

      Here, the 'value' field also has a '-' in its base-revision, which makes the current comparator fail.

      This causes a 500 response during maven-metadata.xml resolution from a virtual repository with "Invalid format" being the error.

        Attachments

          Activity

              People

              Assignee:
              uriahl Uriah Levy
              Reporter:
              uriahl Uriah Levy
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: