Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Identical dir paths without final backslash are accepted as equal #94

Merged

Conversation

robert-clegg-tessella
Copy link
Collaborator

While setting up performance tests, I had trouble deleting a file in the bucket root: got a 403 error with the message "Can not access data outside root directory!".

Tracked down the problem to the is_sub_dir_of_root method, where both paths were given without a final slash. Adding this for the directory_path solved the problem.

@oliver-tarrant-tessella oliver-tarrant-tessella merged commit 201f494 into master Dec 12, 2018
@oliver-tarrant-tessella oliver-tarrant-tessella deleted the bugfix/cannot-delete-file-in-bucket-root-#29 branch December 12, 2018 14:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants