From 0889d5a17d8988f957d4ed5a2e670beec5d1fa00 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 22 May 2012 22:10:28 +0000 Subject: [PATCH] fix issue when no repository has been selected git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1341662 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/archiva/rest/services/DefaultBrowseService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 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 2983b8dd5..5bce8e211 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 @@ -630,7 +630,7 @@ public class DefaultBrowseService repositoryContentFactory.getManagedRepositoryContent( repoId ); ArchivaArtifact archivaArtifact = new ArchivaArtifact( groupId, artifactId, version, classifier, StringUtils.isEmpty( type ) ? "jar" : type, - repositoryId ); + repoId ); File file = managedRepositoryContent.toFile( archivaArtifact ); if ( file.exists() ) { @@ -684,7 +684,7 @@ public class DefaultBrowseService ArtifactDownloadInfoBuilder builder = new ArtifactDownloadInfoBuilder().forArtifactMetadata( artifact ).withManagedRepositoryContent( - repositoryContentFactory.getManagedRepositoryContent( repositoryId ) ); + repositoryContentFactory.getManagedRepositoryContent( repoId ) ); artifactDownloadInfos.add( builder.build() ); } @@ -727,7 +727,7 @@ public class DefaultBrowseService repositoryContentFactory.getManagedRepositoryContent( repoId ); ArchivaArtifact archivaArtifact = new ArchivaArtifact( groupId, artifactId, version, classifier, StringUtils.isEmpty( type ) ? "jar" : type, - repositoryId ); + repoId ); File file = managedRepositoryContent.toFile( archivaArtifact ); if ( !file.exists() ) {