GET http://<host>:<port>/ with out an "Accept: " header causes glance-api to return a 500 error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Medium
|
Justin Shepherd |
Bug Description
Steps to reproduce issue:
Pull down lp:~jshepher/glance/functional_tests_using_httplib2_part2
test_003_
=====
Here is the stack trace from the error:
DEBUG [eventlet.
File "/Users/
result = self.applicatio
File "/Users/
resp = self.call_func(req, *args, **self.kwargs)
File "/Users/
return self.func(req, *args, **kwargs)
File "/Users/
response = self.process_
File "/Users/
accept = req.headers[
File "/Users/
return self.environ[
KeyError: 'HTTP_ACCEPT'
Related branches
- Jay Pipes (community): Approve
- Brian Waldon (community): Approve
- Brian Lamar (community): Approve
-
Diff: 361 lines (+322/-3)3 files modifiedglance/api/middleware/version_negotiation.py (+1/-1)
tests/functional/test_curl_api.py (+1/-1)
tests/functional/test_httplib2_api.py (+320/-1)
Changed in glance: | |
assignee: | nobody → Justin Shepherd (jshepher) |
status: | New → In Progress |
Changed in glance: | |
milestone: | none → diablo-3 |
importance: | Undecided → Medium |
Changed in glance: | |
status: | In Progress → Fix Committed |
Changed in glance: | |
status: | Fix Committed → Fix Released |
Changed in glance: | |
status: | Fix Released → Fix Committed |
Changed in glance: | |
milestone: | diablo-3 → 2011.3 |
status: | Fix Committed → Fix Released |
Sorry , I changed status by mistake