aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-05-23 08:56:19 +0000
committerOlivier Lamy <olamy@apache.org>2012-05-23 08:56:19 +0000
commitcb80084a24095fb4debc50da7ab3850dff2f499a (patch)
tree432ddda470b15a5e47955c5146f5369899d27a64 /archiva-modules/archiva-web
parent0889d5a17d8988f957d4ed5a2e670beec5d1fa00 (diff)
downloadarchiva-cb80084a24095fb4debc50da7ab3850dff2f499a.tar.gz
archiva-cb80084a24095fb4debc50da7ab3850dff2f499a.zip
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
Diffstat (limited to 'archiva-modules/archiva-web')
-rw-r--r--archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultBrowseService.java4
1 files changed, 2 insertions, 2 deletions
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 "";
}