From: Nicolas De Loof Date: Fri, 11 Jan 2008 09:18:13 +0000 (+0000) Subject: fix to getArtifactReference beeing removed from LegacyArtifactPath X-Git-Tag: archiva-1.0.1~18 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9e7a167d4a13d479ddb63175cbd010a5fed7a09b;p=archiva.git fix to getArtifactReference beeing removed from LegacyArtifactPath git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@611119 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/legacy/AddLegacyArtifactPathAction.java b/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/legacy/AddLegacyArtifactPathAction.java index 162fa78ca..6dca666ea 100644 --- a/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/legacy/AddLegacyArtifactPathAction.java +++ b/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/legacy/AddLegacyArtifactPathAction.java @@ -67,7 +67,14 @@ public class AddLegacyArtifactPathAction public String commit() { - ArtifactReference artifact = this.legacyArtifactPath.getArtifactReference(); + ArtifactReference artifact = new ArtifactReference(); + + artifact.setGroupId( this.legacyArtifactPath.getGroupId() ); + artifact.setArtifactId( this.legacyArtifactPath.getArtifactId() ); + artifact.setClassifier( this.legacyArtifactPath.getClassifier() ); + artifact.setVersion( this.legacyArtifactPath.getVersion() ); + artifact.setType( this.legacyArtifactPath.getType() ); + String path = repositoryContent.toPath( artifact ); if ( ! path.equals( this.legacyArtifactPath.getPath() ) ) {