From 7aa49fd4ed5540cb44a3ce834a1d85388f38d81b Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Thu, 1 Mar 2012 10:28:30 +0000 Subject: [PATCH] [MRM-1611] Uploading fail on window server. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1295497 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/apache/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/archiva/web/action/UploadAction.java b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/action/UploadAction.java index 60cfc49c8..0e7464caa 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/action/UploadAction.java +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/action/UploadAction.java @@ -306,7 +306,7 @@ public class UploadAction String artifactPath = repository.toPath( artifactReference ); - int lastIndex = artifactPath.lastIndexOf( '/' ); + int lastIndex = artifactPath.lastIndexOf( File.separatorChar ); String path = artifactPath.substring( 0, lastIndex ); File targetPath = new File( repoConfig.getLocation(), path ); -- 2.39.5