]> source.dussan.org Git - archiva.git/commitdiff
when browsing a repo group without any repositories there is a endless loop asking...
authorOlivier Lamy <olamy@apache.org>
Fri, 28 Sep 2012 12:55:07 +0000 (12:55 +0000)
committerOlivier Lamy <olamy@apache.org>
Fri, 28 Sep 2012 12:55:07 +0000 (12:55 +0000)
so at least shows nothing :-)

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1391435 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java

index 30f387f0f83ec6e6396e825001bdb0d1d6f37700..1d86b851fa5916688a91ee902a7bfd4e329d4c87 100644 (file)
@@ -1120,6 +1120,13 @@ public class ArchivaDavResourceFactory
      */
     private boolean isAllowedToContinue( DavServletRequest request, List<String> repositories, String activePrincipal )
     {
+        // when no repositories configured it's impossible to browse nothing !
+        // at least make possible to see nothing :-)
+        if ( repositories == null || repositories.isEmpty() )
+        {
+            return true;
+        }
+
         boolean allow = false;
 
         // if securitySession != null, it means that the user was prompted for authentication