From 6723188061935b4f7e7f0b6c05b28c309c7954d1 Mon Sep 17 00:00:00 2001 From: James William Dumay Date: Wed, 2 Jul 2008 04:53:38 +0000 Subject: [PATCH] MRM-853 - HTTP Error 500 when uploading artifact with Windows OS Submitted by: John Michael Luy git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@673277 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/maven/archiva/web/action/UploadAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/UploadAction.java b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/UploadAction.java index 567c5c901..7f7dfb440 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/UploadAction.java +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/UploadAction.java @@ -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 ); } -- 2.39.5