diff options
author | Maria Odea B. Ching <oching@apache.org> | 2008-05-21 01:54:13 +0000 |
---|---|---|
committer | Maria Odea B. Ching <oching@apache.org> | 2008-05-21 01:54:13 +0000 |
commit | 67b49a5fdd796db0e731da19706cd5d20e94ab5a (patch) | |
tree | 4b0826ffd43156f3e40254aa6080c1cca18b640d /archiva-modules/archiva-web/archiva-webdav | |
parent | 0f07e0019f4a532ce0cb6b0df685ba18d106b243 (diff) | |
download | archiva-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.java | 8 |
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; } |