abashev / vfs-s3

Amazon S3 driver for Apache commons-vfs (Virtual File System) project
Apache License 2.0
93 stars 50 forks source link

Cannot resolve files with spaces in the name #60

Closed boris-petrov closed 4 years ago

boris-petrov commented 5 years ago

Calling VFS.getManager().resolveFile(...) with a file name that has a space inside fails because S3FileNameParser does a new URI on line 50 which blows up with java.net.URISyntaxException: Illegal character in path at index 46:.

Other VFS providers work fine with such filenames (I guess by encoding the URL or something - you can check LocalFileNameParser for example) so the problem is in vfs-s3.