staticweb enabled container will not list json
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Running swift on Ubuntu 14.04 - 2.2.2-0ubuntu1~
When a container has static web enabled, the container listing comes back as html even with "?format=json"
This causes a swift client(version 2.3.1) to error as follows:
swift list OpenStackMetrics
Traceback (most recent call last):
File "/usr/local/
sys.
File "/Library/
globals(
File "/Library/
raise stats["error"]
Setting static web off as follows stops this error:
swift post -v OpenStackMetrics -m web-listings:
I discovered that on a swift-all-in-one (with tempauth) providing a x-auth-token header caused the middleware to honor the format=json query string.
It may be worth nothing the reporter was running Keystone.