]> source.dussan.org Git - archiva.git/commitdiff
if file not exists for a repository try next repository
authorOlivier Lamy <olamy@apache.org>
Wed, 23 May 2012 08:56:19 +0000 (08:56 +0000)
committerOlivier Lamy <olamy@apache.org>
Wed, 23 May 2012 08:56:19 +0000 (08:56 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1341795 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultBrowseService.java

index 5bce8e21139d29c702d9d45d21488996d16e64dd..dcb31e4db360ecdda1930f0f32cefe1a6eeb46e1 100644 (file)
@@ -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 "";
     }