mirror of https://github.com/apache/archiva.git
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
This commit is contained in:
parent
fa6cdded81
commit
6723188061
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue