]> source.dussan.org Git - archiva.git/commitdiff
MRM-853 - HTTP Error 500 when uploading artifact with Windows OS
authorJames William Dumay <jdumay@apache.org>
Wed, 2 Jul 2008 04:53:38 +0000 (04:53 +0000)
committerJames William Dumay <jdumay@apache.org>
Wed, 2 Jul 2008 04:53:38 +0000 (04:53 +0000)
Submitted by: John Michael Luy

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@673277 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/UploadAction.java

index 567c5c901f1f41945c3d5147d337ba16ab60e85a..7f7dfb4404cd10e6e0c010db2e73683829420671 100644 (file)
@@ -448,7 +448,7 @@ public class UploadAction
 
     private File getMetadata( String targetPath )
     {
-        String artifactPath = targetPath.substring( 0, targetPath.lastIndexOf( '/' ) );
+        String artifactPath = targetPath.substring( 0, targetPath.lastIndexOf( File.separatorChar ) );
 
         return new File( artifactPath, MetadataTools.MAVEN_METADATA );
     }