aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-web
diff options
context:
space:
mode:
authorBrett Porter <brett@apache.org>2008-03-28 12:59:02 +0000
committerBrett Porter <brett@apache.org>2008-03-28 12:59:02 +0000
commit7e9be00cccfdc3ab898dd97c538e97f9f9768a24 (patch)
treecb39f14865b1b6c6ab9e2c04c90ee449ea4d076b /archiva-web
parent40a360dbdbb474aa13c5d30f5f2a7c70b712d19a (diff)
downloadarchiva-7e9be00cccfdc3ab898dd97c538e97f9f9768a24.tar.gz
archiva-7e9be00cccfdc3ab898dd97c538e97f9f9768a24.zip
[MRM-610] fix webdav tests on windows
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@642214 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-web')
-rw-r--r--archiva-web/archiva-webdav/src/main/java/org/apache/maven/archiva/webdav/servlet/multiplexed/MultiplexedDavServerRequest.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/archiva-web/archiva-webdav/src/main/java/org/apache/maven/archiva/webdav/servlet/multiplexed/MultiplexedDavServerRequest.java b/archiva-web/archiva-webdav/src/main/java/org/apache/maven/archiva/webdav/servlet/multiplexed/MultiplexedDavServerRequest.java
index 4d9ec43cb..b46a76d7a 100644
--- a/archiva-web/archiva-webdav/src/main/java/org/apache/maven/archiva/webdav/servlet/multiplexed/MultiplexedDavServerRequest.java
+++ b/archiva-web/archiva-webdav/src/main/java/org/apache/maven/archiva/webdav/servlet/multiplexed/MultiplexedDavServerRequest.java
@@ -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 = "/";
}