From: James William Dumay Date: Tue, 3 Jun 2008 11:22:23 +0000 (+0000) Subject: MRM-781 - Removal of Archiva-Webdav implementation in favor of Jackrabbit-webdav X-Git-Tag: archiva-r676265~74 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b3d3556562e06a21cdc4ecbd0438bf11cc4cc3b5;p=archiva.git 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 --- 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; }