]> source.dussan.org Git - archiva.git/commitdiff
[MRM-610] fix webdav tests on windows
authorBrett Porter <brett@apache.org>
Fri, 28 Mar 2008 12:59:02 +0000 (12:59 +0000)
committerBrett Porter <brett@apache.org>
Fri, 28 Mar 2008 12:59:02 +0000 (12:59 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@642214 13f79535-47bb-0310-9956-ffa450edef68

archiva-web/archiva-webdav/src/main/java/org/apache/maven/archiva/webdav/servlet/multiplexed/MultiplexedDavServerRequest.java

index 4d9ec43cbf19416c4e63d555e76c0ed05acbd761..b46a76d7ae5df564e253ce2a321d31ee160951b5 100644 (file)
@@ -76,12 +76,16 @@ public class MultiplexedDavServerRequest
              */
             this.logicalResource = FilenameUtils.normalize( logicalResource );
 
-            if ( logicalResource != null && logicalResource.startsWith( "//" ) )
+            if ( logicalResource != null )
             {
-                logicalResource = logicalResource.substring( 1 );
-            }
+                logicalResource = logicalResource.replace( '\\', '/' );
 
-            if ( this.logicalResource == null )
+                if ( logicalResource.startsWith( "//" ) )
+                {
+                    logicalResource = logicalResource.substring( 1 );
+                }
+            }
+            else
             {
                 this.logicalResource = "/";
             }