jcaddel / maven-s3-wagon

Multi-threaded wagon to connect Maven with Amazon S3
123 stars 50 forks source link

Upload fails when including files with spaces #11

Closed mvberg closed 11 years ago

mvberg commented 11 years ago

Caused by: java.net.URISyntaxException: Illegal character in path at index 103: http://s3.amazonaws.com/some-bucket/some file with space.jar at java.net.URI$Parser.fail(URI.java:2829) at java.net.URI$Parser.checkChars(URI.java:3002) at java.net.URI$Parser.parseHierarchical(URI.java:3086) at java.net.URI$Parser.parse(URI.java:3034) at java.net.URI.(URI.java:595) at org.kuali.maven.wagon.S3Wagon.getNormalizedKey(S3Wagon.java:301) ... 28 more

Simple fix for getNormalizedKey() could be...

URI rawURI = new URI(urlString.replace(" ", "%20"));

jcaddel commented 11 years ago
mvberg commented 11 years ago

Thank you!