You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there is a file in S3 whose name has brackets, braces or a %, an exception is thrown from URI.create, called by S3Path.toUri(). For example, if our filename is foo[1], the S3Path object's field "uri" is something like "/foo[1]", toUri() then builds a string "s3://[email protected]/bucketname/foo[1]" which URI.create() doesn't like because of the []. I looked at sun.nio.fs.UnixPath.toUri() and it calls UnixUriUtils, which does encode these chars.
I would suggest that S3Path.encode() add encoding for [], {}, % and perhaps other chars.
Thanks.
The text was updated successfully, but these errors were encountered:
amarcionek
added a commit
to Seven10Storage/Amazon-S3-FileSystem-NIO2
that referenced
this issue
Nov 27, 2018
If there is a file in S3 whose name has brackets, braces or a %, an exception is thrown from URI.create, called by S3Path.toUri(). For example, if our filename is foo[1], the S3Path object's field "uri" is something like "/foo[1]", toUri() then builds a string "s3://[email protected]/bucketname/foo[1]" which URI.create() doesn't like because of the []. I looked at sun.nio.fs.UnixPath.toUri() and it calls UnixUriUtils, which does encode these chars.
I would suggest that S3Path.encode() add encoding for [], {}, % and perhaps other chars.
Thanks.
The text was updated successfully, but these errors were encountered: