Uploaded image for project: 'Archiva'
  1. Archiva
  2. MRM-1246

MetadataUpdaterConsumer didn't run during a repository scan after deleting a version of an artifact.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.2
    • Fix Version/s: 1.3
    • Component/s: None
    • Labels:
      None
    • Flags:
      Patch

      Description

      Steps to replicate

      1. Deploy several test snapshots with
      mvn deploy:deploy-file -Dfile=test.jar -DgroupId=com.example.test -DartifactId=test -Dversion=2.0-SNAPSHOT -Durl=file:///home/gwen/repository/snapshots -Dpackaging=jar
      and repeat several times for version 1.0, 1.1 (results in timestamped snapshots).

      2. Open /home/gwen/repository/snapshots/com/example/test/test/maven-metadata.xml. All version can be seen.

      3. Scan the repository and update the database. Confirm that the artifacts are all visible through the browse url.

      4. Delete the com/example/test/test/1.1-SNAPSHOT directory from the repository

      5. Click "Scan repository now" for the Snapshots repository and wait for the scan to finish

      6. View the metadata file again.

      Expected result: version 1.1-SNAPSHOT is not in the maven-metadata.xml file

      Actual result: the metadata file still contains version 1.1-SNAPSHOT

        Attachments

        1. MRM-1246.patch
          2 kB
          Gwen Harold Autencio
        2. updated-MRM-1246.patch
          3 kB
          Gwen Harold Autencio

          Issue Links

            Activity

              People

              • Assignee:
                jzurbano Jevica Arianne B. Zurbano
                Reporter:
                gautencio Gwen Harold Autencio
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: