Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
-
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.