summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-webdav
diff options
context:
space:
mode:
authorMaria Odea B. Ching <oching@apache.org>2008-05-21 01:54:13 +0000
committerMaria Odea B. Ching <oching@apache.org>2008-05-21 01:54:13 +0000
commit67b49a5fdd796db0e731da19706cd5d20e94ab5a (patch)
tree4b0826ffd43156f3e40254aa6080c1cca18b640d /archiva-modules/archiva-web/archiva-webdav
parent0f07e0019f4a532ce0cb6b0df685ba18d106b243 (diff)
downloadarchiva-67b49a5fdd796db0e731da19706cd5d20e94ab5a.tar.gz
archiva-67b49a5fdd796db0e731da19706cd5d20e94ab5a.zip
[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
Diffstat (limited to 'archiva-modules/archiva-web/archiva-webdav')
-rw-r--r--archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/maven/archiva/webdav/ArchivaDavResourceFactory.java8
1 files changed, 7 insertions, 1 deletions
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;
}