From: Olivier Lamy Date: Fri, 28 Sep 2012 12:55:07 +0000 (+0000) Subject: when browsing a repo group without any repositories there is a endless loop asking... X-Git-Tag: archiva-1.4-M3~40 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1d2fb026a6b462f8f6bedc1584894e03e054758a;p=archiva.git when browsing a repo group without any repositories there is a endless loop asking password so at least shows nothing :-) git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1391435 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java index 30f387f0f..1d86b851f 100644 --- a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java +++ b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java @@ -1120,6 +1120,13 @@ public class ArchivaDavResourceFactory */ private boolean isAllowedToContinue( DavServletRequest request, List 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