Server error when querying /
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mix and Match (mixmatch) |
Fix Released
|
Medium
|
Leo Tomatsu |
Bug Description
When querying the root of the API, Server Error 500 is returned. This is because the path is analyzed for the presence of "volume" or "image", "v1" or "v2".
2017-06-23 18:01:13.436 23689 ERROR root [-] ['']
[2017-06-23 18:01:13,437] ERROR in app: Exception on / [GET]
Traceback (most recent call last):
File "/usr/local/
response = self.full_
File "/usr/local/
rv = self.handle_
File "/usr/local/
reraise(
File "/usr/local/
rv = self.dispatch_
File "/usr/local/
return self.view_
File "./mixmatch/
k2k_request = RequestHandler(
File "./mixmatch/
self.details = get_details(method, path.split('/'), headers)
File "./mixmatch/
'service': get_service(path),
File "./mixmatch/
raise ValueError
ValueError
Changed in mixmatch: | |
assignee: | nobody → Leo Tomatsu (leo.tomatsu) |
status: | Triaged → In Progress |
Reviewed: https:/ /review. openstack. org/479368 /git.openstack. org/cgit/ openstack/ mixmatch/ commit/ ?id=199dbbaea89 6811ebb2f935675 39ab4a7cc41aa4
Committed: https:/
Submitter: Jenkins
Branch: master
commit 199dbbaea896811 ebb2f93567539ab 4a7cc41aa4
Author: ltomatsu <email address hidden>
Date: Fri Jun 30 16:29:45 2017 +0000
Return 404 rather than ValueError
The get_service function returns ValueError
when the service response is neither cinder
nor glance. Switch this over to abort 404.
Closes-Bug: #1700144 b4771a27fe6f272 842a3d498fe
Change-Id: If2cf585dd555ea