GET /v2.0 HTTP/1.1 gives internal server error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Expired
|
Low
|
Unassigned |
Bug Description
When we query server with GET /v2.0 HTTP/1.1 the server response is 500 Internal server error with following error in response body:
Traceback (most recent call last):
File "/usr/local/
result = self.applicatio
File "/usr/local/
return app(environ, start_response)
File "/usr/local/
return resp(environ, start_response)
File "/usr/local/
config.environ = environ
File "/usr/local/
self.
File "/usr/local/
result = mapper.
File "/usr/local/
raise RoutesException
RoutesException: URL or environ must be provided
I think the server should not reply with its internals in response body.
Also to be noted is that when we query with GET /v2.0/ HTTP/1.1 then server responds with:
<resources>
which looks kind of appropriate. Should such error be allowed by the server?
tags: |
added: api removed: quantum quantum-server |
Changed in neutron: | |
status: | Confirmed → In Progress |
Changed in neutron: | |
status: | In Progress → Confirmed |
Yes, it would be good to make sure that an internal exception does not result in a traceback being returned to a user. The user should just get a HTTP 500 and an generic message like "Internal server error". We should be sure to log the exception internally though.