]> source.dussan.org Git - archiva.git/commitdiff
fix issue when no repository has been selected
authorOlivier Lamy <olamy@apache.org>
Tue, 22 May 2012 22:10:28 +0000 (22:10 +0000)
committerOlivier Lamy <olamy@apache.org>
Tue, 22 May 2012 22:10:28 +0000 (22:10 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1341662 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 2983b8dd5e930438669fcea2a95922571c9bfc69..5bce8e21139d29c702d9d45d21488996d16e64dd 100644 (file)
@@ -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() )
                 {