From: Olivier Lamy Date: Wed, 23 May 2012 08:56:19 +0000 (+0000) Subject: if file not exists for a repository try next repository X-Git-Tag: archiva-1.4-M3~692 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cb80084a24095fb4debc50da7ab3850dff2f499a;p=archiva.git if file not exists for a repository try next repository git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1341795 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultBrowseService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultBrowseService.java index 5bce8e211..dcb31e4db 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultBrowseService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultBrowseService.java @@ -731,8 +731,7 @@ public class DefaultBrowseService File file = managedRepositoryContent.toFile( archivaArtifact ); if ( !file.exists() ) { - // 404 ? - return ""; + continue; } if ( StringUtils.isNotBlank( path ) ) { @@ -770,6 +769,7 @@ public class DefaultBrowseService throw new ArchivaRestServiceException( e.getMessage(), Response.Status.INTERNAL_SERVER_ERROR.getStatusCode(), e ); } + // 404 ? return ""; }