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
This commit is contained in:
Olivier Lamy 2012-05-23 08:56:19 +00:00
parent 0889d5a17d
commit cb80084a24
1 changed files with 2 additions and 2 deletions

View File

@ -731,8 +731,7 @@ public class DefaultBrowseService
File file = managedRepositoryContent.toFile( archivaArtifact ); File file = managedRepositoryContent.toFile( archivaArtifact );
if ( !file.exists() ) if ( !file.exists() )
{ {
// 404 ? continue;
return "";
} }
if ( StringUtils.isNotBlank( path ) ) if ( StringUtils.isNotBlank( path ) )
{ {
@ -770,6 +769,7 @@ public class DefaultBrowseService
throw new ArchivaRestServiceException( e.getMessage(), throw new ArchivaRestServiceException( e.getMessage(),
Response.Status.INTERNAL_SERVER_ERROR.getStatusCode(), e ); Response.Status.INTERNAL_SERVER_ERROR.getStatusCode(), e );
} }
// 404 ?
return ""; return "";
} }