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

Yum duplicates with "Disable redeploy" setting.

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • Yum
    • None
    • 0
    • 4

    Description

      It is possible to upload the same rpm to different paths in Yum hosted repository, even though the metadata version is the same and deployment policy is set to "disable redeploy". 

      Steps to reproduce:

      1. curl -v --user 'admin:admin123' --upload-file ./test.rpm http://localhost:8081/repository/yumhost/1.0/test.rpm 
      Uploaded successfully

      2. curl -v --user 'admin:admin123' --upload-file ./test.rpm http://localhost:8081/repository/yumhost/2.0/test.rpm 
      Uploaded successfully

       

      Why test.rpm is allowing to upload into /repository/yumhost/2.0 because it is already uploaded in 1.0? - the metadata version is the same.

      When I am deleting test.rpm from 2.0 it is also deleting from 1.0 and vice versa. So if did want to removed a duplicate, it removes both. It would better it Nexus prevented the second upload.

      Attachments

        Activity

          People

            Unassigned Unassigned
            msurani Mahendra Surani
            Joe Tom Joe Tom
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              tigCommentSecurity.panel-title