Multi-character delimiters cause 500

Bug #1724081 reported by Tim Burke
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Swift3
New
Undecided
Unassigned

Bug Description

...because we just pass that straight through to swift, which returns an (unexpected) 412:

DEBUG:boto:CanonicalRequest:
GET
/bucket/
delimiter=%252f
content-length:0
host:<hostname>
user-agent:Boto/2.48.0 Python/2.7.6 Linux/3.13.0-86-generic
x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz-date:20171016T210343Z

content-length;host;user-agent;x-amz-content-sha256;x-amz-date
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
DEBUG:boto:StringToSign:
AWS4-HMAC-SHA256
20171016T210343Z
20171016/us-east-1/s3/aws4_request
90e088ec56922034ba188f80530e64446d12dd489ef9a356aea85a9cf63a17b3
DEBUG:boto:Signature:
1ff384e840de10a801ad088668d3e882cabb267fe71b86c82409059407e9c0bf
DEBUG:boto:Final headers: {'x-amz-content-sha256': 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', 'Content-Length': '0', 'User-Agent': 'Boto/2.48.0 Python/2.7.6 Linux/3.13.0-86-generic', 'Host': '<hostname>', 'X-Amz-Date': '20171016T210343Z', 'Authorization': 'AWS4-HMAC-SHA256 Credential=<user>/20171016/us-east-1/s3/aws4_request,SignedHeaders=content-length;host;user-agent;x-amz-content-sha256;x-amz-date,Signature=1ff384e840de10a801ad088668d3e882cabb267fe71b86c82409059407e9c0bf'}
DEBUG:boto:Response headers: [('x-amz-id-2', 'tx6d86efca052541038deb6-0059e51ea8'), ('transfer-encoding', 'chunked'), ('x-amz-request-id', 'tx6d86efca052541038deb6-0059e51ea8'), ('x-trans-id', 'tx6d86efca052541038deb6-0059e51ea8'), ('date', 'Mon, 16 Oct 2017 21:03:36 GMT'), ('content-type', 'application/xml'), ('x-openstack-request-id', 'tx6d86efca052541038deb6-0059e51ea8')]
DEBUG:boto:Received 500 response. Retrying in 56.4 seconds
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/boto/s3/bucket.py", line 474, in get_all_keys
    '', headers, **params)
  File "/usr/local/lib/python2.7/dist-packages/boto/s3/bucket.py", line 400, in _get_all
    query_args=query_args)
  File "/usr/local/lib/python2.7/dist-packages/boto/s3/connection.py", line 671, in make_request
    retry_handler=retry_handler
  File "/usr/local/lib/python2.7/dist-packages/boto/connection.py", line 1071, in make_request
    retry_handler=retry_handler)
  File "/usr/local/lib/python2.7/dist-packages/boto/connection.py", line 1028, in _mexe
    raise BotoServerError(response.status, response.reason, body)
boto.exception.BotoServerError: BotoServerError: 500 Internal Server Error
<?xml version='1.0' encoding='UTF-8'?>
<Error><Code>InternalError</Code><Message>unexpected status code 412</Message><RequestId>tx6d86efca052541038deb6-0059e51ea8</RequestId></Error>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.