]> source.dussan.org Git - archiva.git/commit
[MRM-747] Archiva should prevent re-deployment of released or non-snapshot versioned...
authorMaria Odea B. Ching <oching@apache.org>
Tue, 13 Oct 2009 10:36:24 +0000 (10:36 +0000)
committerMaria Odea B. Ching <oching@apache.org>
Tue, 13 Oct 2009 10:36:24 +0000 (10:36 +0000)
commitc893eefe9fd685bdcfaf14805d8448665c777125
treeed8b202a595030793893bc402ef362622ff1232a
parent88f79fe1e7688750f3236feb71a5288e6891abe1
[MRM-747] Archiva should prevent re-deployment of released or non-snapshot versioned artifacts
submitted by Marc Lustig
o added checks in webdav to block re-deployment if artifact version already exists in the repo and throw a 409 in such cases
o added tests for deploying and re-deploying an artifact

additional modifications to the patch:
o update checking for artifact types that will be blocked
o add tests for deploying metadata and support file

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@824677 13f79535-47bb-0310-9956-ffa450edef68
archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/maven/archiva/webdav/ArchivaDavResourceFactory.java
archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/maven/archiva/webdav/ReleaseArtifactAlreadyExistsException.java [new file with mode: 0644]
archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/AbstractRepositoryServletTestCase.java
archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/RepositoryServletDeployTest.java
archiva-modules/archiva-web/archiva-webdav/src/test/resources/artifact.jar.sha1 [new file with mode: 0644]