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
This commit allows url with adjacent slashes to be handled correctly.
- Disabled RestProtocolURICleaning (link) as it do not allow adjacent slashes.
- Changed path.Join method to strings.Join when joined remote urls. path.Join also cleans paths which removes additional slashes.
- Kept local urls to be joined with path.Join.
- Added test cases for copy;
- Remote to local
- Local to remote
- Remote to remote
- Removed redundant trailing slashes in the keys of s3 objects in ls_test.go and sync_test.go files.
Fixes: peak#352 ,peak#449
This commit allows url with adjacent slashes to be handled correctly.
- Disabled RestProtocolURICleaning (link) as it do not allow adjacent slashes.
- Changed path.Join method to strings.Join when joined remote urls. path.Join also cleans paths which removes additional slashes.
- Kept local urls to be joined with path.Join.
- Added test cases for copy;
- Remote to local
- Local to remote
- Remote to remote
- Removed redundant trailing slashes in the keys of s3 objects in ls_test.go and sync_test.go files.
Fixes#352Fixes#449
works:
aws s3 ls s3://foo/bar/s3://baz
fails:
s5cmd ls s3://foo/bar/s3://baz
storage: unknown url format
(keys like these should be legal)
The text was updated successfully, but these errors were encountered: