Details
Description
It is possible to redeploy artifacts when Deployment Policy is set to "Disable redeploy". This only happens when the artifact has no maven group.
Steps to reproduce:
1) Create a maven hosted repo with the following setting:
Layout Policy : Permissive
Deployment Policy: Disable redeploy.
2) Upload a file to
http://localhost:8081/repository/maven-hosted/TestZip/1.0.0/TestZip-1.0.0.zip
3) Upload again to the same path. This should not be allowed.
http://localhost:8081/repository/maven-hosted/TestZip/1.0.0/TestZip-1.0.0.zip
If a maven group is present in the path then the redeploy is prevented
Acceptance
Attempts to redeploy should be prevented.