Merge pull request #2909 from oliparcol/bug/2759

S3 - Allow keys to start with leading slashes
This commit is contained in:
Steve Pulec 2020-04-25 18:46:25 -05:00 committed by GitHub
commit efbb9c54a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 2 deletions

View file

@ -132,7 +132,8 @@ ACTION_MAP = {
def parse_key_name(pth):
return pth.lstrip("/")
# strip the first '/' left by urlparse
return pth[1:] if pth.startswith("/") else pth
def is_delete_keys(request, path, bucket_name):