Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: head/get/delete/copy directory object should fail when corresponding … #714

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

benmcclelland
Copy link
Member

@benmcclelland benmcclelland commented Aug 5, 2024

…file object exists

The API hanlders and backend were stripping trailing "/" in object paths. So if an object exists and a request came in for head/get/delete/copy for that same name but with a trailing "/" indicating request should be for directory object, the "/" would be stripped and the request would be handlied for the incorrect file object.

This fix adds in checks to handle the case with the training "/" in the request.

Fixes #709

…ding file object exists

The API hanlders and backend were stripping trailing "/" in object
paths. So if an object exists and a request came in for head/get/delete/copy
for that same name but with a trailing "/" indicating request should
be for directory object, the "/" would be stripped and the request
would be handlied for the incorrect file object.

This fix adds in checks to handle the case with the training "/"
in the request.

Fixes #709
@benmcclelland benmcclelland changed the title fix: head/get/delete directory object should fail when corresponding … fix: head/get/delete/copy directory object should fail when corresponding … Aug 5, 2024
@benmcclelland benmcclelland requested a review from 0x180 August 5, 2024 19:32
@benmcclelland benmcclelland merged commit adbc814 into main Aug 6, 2024
13 checks passed
@benmcclelland benmcclelland deleted the ben/get_obj_dir branch August 6, 2024 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Response divergence from AWS S3
2 participants