aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-05-22 22:10:28 +0000
committerOlivier Lamy <olamy@apache.org>2012-05-22 22:10:28 +0000
commit0889d5a17d8988f957d4ed5a2e670beec5d1fa00 (patch)
tree953b82a176dd32b4d676f5108ea686bc9aceced1 /archiva-modules
parent506c3c7ae0ea0dbdd50c470e7ad3ac8c9ff43766 (diff)
downloadarchiva-0889d5a17d8988f957d4ed5a2e670beec5d1fa00.tar.gz
archiva-0889d5a17d8988f957d4ed5a2e670beec5d1fa00.zip
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
Diffstat (limited to 'archiva-modules')
-rw-r--r--archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultBrowseService.java6
1 files 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() )
{