Error responses ignore accept header
Bug #1182155 reported by
gholt
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Won't Fix
|
Undecided
|
Azhagu Selvan SP |
Bug Description
In swob.py it would seem the default response bodies are always wrapped in html boilerplate, no matter the request's accept header.
Changed in swift: | |
assignee: | nobody → pradeep kumar singh (pradeep-singh-u) |
Changed in swift: | |
assignee: | Pradeep Kumar Singh (pradeep-singh-u) → Azhagu Selvan SP (tamizhgeek) |
Changed in swift: | |
status: | Confirmed → In Progress |
To post a comment you must log in.
@gholt; Before i start working on this one i want better understand what we want to achieve here. So if Accept: application / json than you expect swob to return an exception in JSON, like 'yyyy'}
{ 'title': 'xxx', 'description:
?
All existing Swift customers and their various client tools currently expect HTML error and now they will receive JSON.
There is no doubt about the bug you reported, but still - do we really want to change existing API? i am a bit concern about it..
What do you think about?