From 67b49a5fdd796db0e731da19706cd5d20e94ab5a Mon Sep 17 00:00:00 2001 From: "Maria Odea B. Ching" Date: Wed, 21 May 2008 01:54:13 +0000 Subject: [PATCH] [MRM-694] -handle problem with the missing '/' in the repository group url git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@658528 13f79535-47bb-0310-9956-ffa450edef68 --- .../maven/archiva/webdav/ArchivaDavResourceFactory.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/maven/archiva/webdav/ArchivaDavResourceFactory.java b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/maven/archiva/webdav/ArchivaDavResourceFactory.java index 4ee011dc6..7e8c12958 100644 --- a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/maven/archiva/webdav/ArchivaDavResourceFactory.java +++ b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/maven/archiva/webdav/ArchivaDavResourceFactory.java @@ -703,7 +703,13 @@ public class ArchivaDavResourceFactory ArchivaVirtualDavResource resource = new ArchivaVirtualDavResource( mergedRepositoryContents, logicalResource.getPath(), mimeTypes, locator, this ); - + + // compatibility with MRM-440 to ensure browsing the repository group works ok + if ( resource.isCollection() && !resource.getLocator().getResourcePath().endsWith( "/" ) ) + { + throw new BrowserRedirectException( resource.getHref() ); + } + return resource; } -- 2.39.5