]> source.dussan.org Git - archiva.git/commitdiff
MRM-781 - Removal of Archiva-Webdav implementation in favor of Jackrabbit-webdav
authorJames William Dumay <jdumay@apache.org>
Tue, 3 Jun 2008 11:22:23 +0000 (11:22 +0000)
committerJames William Dumay <jdumay@apache.org>
Tue, 3 Jun 2008 11:22:23 +0000 (11:22 +0000)
* 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

archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/maven/archiva/webdav/ArchivaDavResourceLocator.java

index b712adbb525d5a76938ac46bba0b37ea20e73e90..32bb76c2b691b8be23a7c7ecf83001e289c9dcae 100644 (file)
@@ -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;
     }