Uploaded image for project: 'Maven Resolver'
  1. Maven Resolver
  2. MRESOLVER-268

Apply artifact checksum verification for any resolved artifact

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.9.0
    • Resolver
    • None

    Description

      Maven resolver currently only verifies provided checksums (via ProvidedChecksumsSource) when artifacts are downloaded from a remote repository. While this strategy is efficient when working with a clean local repository, it can create problems if two Maven projects share a local repository, where only one project validates hashes. If the first project has downloaded a corrupted artifact, the second project would now use this corrupted artifact despite knowing a non-matching checksum.

      With the proposed change, artifacts are validated whenever they are resolved. This allows to retain the integrity of a project also when sharing a local Maven repository with other, unsecured projects.

      The current PR only activates this general validation if a global validation policy is defined.

      Attachments

        Activity

          People

            cstamas Tamas Cservenak
            raphw Rafael Winterhalter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: