diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/AbstractRestService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/AbstractRestService.java index 38858ec0c..754b73c63 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/AbstractRestService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/AbstractRestService.java @@ -192,6 +192,9 @@ public abstract class AbstractRestService sb.append( "/repository" ); + // FIXME when artifact come from a remote repository when have here the remote repo id + // we must replace it with a valid managed one available for the user. + sb.append( '/' ).append( artifact.getContext() ); sb.append( '/' ).append( StringUtils.replaceChars( artifact.getGroupId(), '.', '/' ) );