From efd9d33b06ab1cb67ce8c7bcabc6f5cca25c88f2 Mon Sep 17 00:00:00 2001 From: Brett Porter Date: Mon, 21 Dec 2009 12:58:42 +0000 Subject: [PATCH] [MRM-1282] add some notes about snapshot handling in light of the new getArtifacts method git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@892806 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/maven/archiva/web/action/DeleteArtifactAction.java | 1 + .../archiva/web/xmlrpc/services/AdministrationServiceImpl.java | 1 + 2 files changed, 2 insertions(+) diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/DeleteArtifactAction.java b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/DeleteArtifactAction.java index 6994e9655..1037ccf57 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/DeleteArtifactAction.java +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/DeleteArtifactAction.java @@ -232,6 +232,7 @@ public class DeleteArtifactAction for ( ArtifactMetadata artifact : artifacts ) { + // TODO: mismatch between artifact (snapshot) version and project (base) version here if ( artifact.getVersion().equals( version ) ) { metadataRepository.deleteArtifact( artifact.getRepositoryId(), artifact.getNamespace(), diff --git a/archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-services/src/main/java/org/apache/archiva/web/xmlrpc/services/AdministrationServiceImpl.java b/archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-services/src/main/java/org/apache/archiva/web/xmlrpc/services/AdministrationServiceImpl.java index 2149d7cb4..9a2f51fa2 100644 --- a/archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-services/src/main/java/org/apache/archiva/web/xmlrpc/services/AdministrationServiceImpl.java +++ b/archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-services/src/main/java/org/apache/archiva/web/xmlrpc/services/AdministrationServiceImpl.java @@ -175,6 +175,7 @@ public class AdministrationServiceImpl for ( ArtifactMetadata artifact : artifacts ) { + // TODO: mismatch between artifact (snapshot) version and project (base) version here if ( artifact.getVersion().equals( version ) ) { metadataRepository.deleteArtifact( artifact.getRepositoryId(), artifact.getNamespace(),