Accept header bug with listings
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Undecided
|
Samuel Merritt |
Bug Description
Normally I'd just patch this up and submit a review, but it's been a rough few weeks so I'll just post this small issue we noticed:
$ curl -i http://
HTTP/1.1 200 OK
Content-Length: 154
Accept-Ranges: bytes
X-Timestamp: 1374110708.32134
X-Account-
X-Account-
Content-Type: text/xml; charset=utf-8
X-Account-
Date: Thu, 18 Jul 2013 01:26:28 GMT
<?xml version="1.0" encoding="UTF-8"?>
<account name="AUTH_test">
<container>
</account>
$ curl -i http://
HTTP/1.1 406 Not Acceptable
Content-Length: 112
Content-Type: text/html; charset=UTF-8
Date: Thu, 18 Jul 2013 01:27:15 GMT
<html><h1>Not Acceptable<
Changed in swift: | |
assignee: | nobody → Samuel Merritt (torgomatic) |
Changed in swift: | |
milestone: | none → 1.9.1 |
status: | Fix Committed → Fix Released |
Looks to be a bug in swob:
$ python -c 'from swift.common import swob; print swob.Accept( "text/xml; charset= UTF-8") ._get_types( )' gholt/swift/ swift/common/ swob.py" , line 620, in _get_types
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/
raise ValueError('Invalid accept header')
ValueError: Invalid accept header