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

Rest service copyArtifact should fix metadata after copy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.2.4
    • 3.0.0
    • rest services
    • None

    Description

      From the mailing list:

      The next problem, and weird behavior is that the rest service copyArtifact
      is not fixing the metadata for the new files. Something I expected it to
      do. I guess this is a bug. So to fix the metadata you actually have to run
      scanRepositoryDirectoriesNow ... before you can use the artifact with for
      example mvn versions:use-latest-versions. If your repository is large, like
      for example 200gig then scanRepositoryDirectoriesNow takes more than
      60mins. This leads to not being able to use the artifact until the
      directory have been scanned. Really bad.

      Suggestions to fix this is to either fix a rest request where its possible
      to scan a specific artifact and fix for example the metadata, checksum or
      whatever stuff you want to fix with the consumers. Would be really handy.
      Another solution is if the copyArtifact does this, something I expected it
      to do.

      Attachments

        Activity

          People

            martin_s Martin Schreier
            martin_s Martin Schreier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: