From 1d2fb026a6b462f8f6bedc1584894e03e054758a Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Fri, 28 Sep 2012 12:55:07 +0000 Subject: [PATCH] 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 --- .../apache/archiva/webdav/ArchivaDavResourceFactory.java | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.39.5