Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-25425

Docker repository's Deployment policy: "Disable redeploy" should not check the manifest file

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.26.1, 3.27.0
    • Fix Version/s: None
    • Component/s: Docker
    • Labels:

      Description

      SYMPTOM:

      The following docker command generates WARN in nexus.log

      docker pull alpine:3.7
      docker tag alpine:3.7 local.standalone.localdomain:10000/alpine:first
      docker push local.standalone.localdomain:10000/alpine:first    # no WARN
      docker tag alpine:3.7 local.standalone.localdomain:10000/alpine:second
      docker push local.standalone.localdomain:10000/alpine:second
      
      $ grep -E 'WARN .+second' ./sonatype-work/nexus3/log/nexus.log
      2020-09-30 14:10:19,248+1000 WARN  [qtp794360939-473]  admin org.sonatype.nexus.repository.docker.internal.V2Handlers - Error: PUT /v2/alpine/manifests/second: 400 - Repository does not allow updating assets: DOCKER
      

      https://github.com/sonatype/nexus-public/blob/release-3.27.0-03/components/nexus-repository/src/main/java/org/sonatype/nexus/repository/storage/StorageTxImpl.java#L900

      EXPECTED BEHAVIOUR:

      The manifest file should be updatable as "/v2/alpine/manifests/second" doesn't exist.
      Or, if this is by-design, at least Nexus shouldn't show the WARN.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              hosako Hajime Osako
              Last Updated By:
              Jay Kumar SenSharma Jay Kumar SenSharma
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title