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
An empty object with key path/with/trailing/slash is created.
Expected behavior
Create an empty object with key path/with/trailing/slash/ (note the trailing slash).
Use case
The use case for this is s3fs. It uses empty objects with trailing slashes to mark directories. Due to this issue objects created with this sdk are unusable from s3fs.
Debugging
I managed to track down the problematic piece of code. aws-sdk-core/lib/seahorse/client/plugins/endpoint.rb, line 61:
Thank you for the bug report and the pointer to the cause. I've put together a fix and added a test to cover the expected behavior. This should go out with the next release shortly.
Problem
When using a trailing slash in the key the slash gets lost.
Actual behavior
An empty object with key
path/with/trailing/slash
is created.Expected behavior
Create an empty object with key
path/with/trailing/slash/
(note the trailing slash).Use case
The use case for this is s3fs. It uses empty objects with trailing slashes to mark directories. Due to this issue objects created with this sdk are unusable from s3fs.
Debugging
I managed to track down the problematic piece of code.
aws-sdk-core/lib/seahorse/client/plugins/endpoint.rb
, line 61:This split-then-join loses the trailing slash.
The text was updated successfully, but these errors were encountered: