diff options
author | James William Dumay <jdumay@apache.org> | 2008-06-03 11:22:23 +0000 |
---|---|---|
committer | James William Dumay <jdumay@apache.org> | 2008-06-03 11:22:23 +0000 |
commit | b3d3556562e06a21cdc4ecbd0438bf11cc4cc3b5 (patch) | |
tree | 2e3bf96cedcf2414e63ebb48bc0837334beb77ae /archiva-modules | |
parent | 5a3192b85dc89b48f30ac088ddfce9774f6b49e7 (diff) | |
download | archiva-b3d3556562e06a21cdc4ecbd0438bf11cc4cc3b5.tar.gz archiva-b3d3556562e06a21cdc4ecbd0438bf11cc4cc3b5.zip |
MRM-781 - Removal of Archiva-Webdav implementation in favor of Jackrabbit-webdav
* Webdav litmus test is now able to run correctly.
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@662742 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules')
-rw-r--r-- | archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/maven/archiva/webdav/ArchivaDavResourceLocator.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/maven/archiva/webdav/ArchivaDavResourceLocator.java b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/maven/archiva/webdav/ArchivaDavResourceLocator.java index b712adbb5..32bb76c2b 100644 --- a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/maven/archiva/webdav/ArchivaDavResourceLocator.java +++ b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/maven/archiva/webdav/ArchivaDavResourceLocator.java @@ -60,6 +60,12 @@ public class ArchivaDavResourceLocator { hrefPrefix = hrefPrefix.substring( 0, hrefPrefix.length() - 1 ); } + + //Remove trailing slashes otherwise Text.getRelativeParent fails + if (resourcePath.endsWith("/") && resourcePath.length() > 1) + { + this.resourcePath = resourcePath.substring( 0, resourcePath.length() - 1 ); + } href = hrefPrefix + escapedPath; } |