ObjectStore must throw 404 when bucket does not exist (Commit 146)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
justinsb |
Bug Description
Before the twisted rewrite of the objectstore, if a bucket did not exist, Bucket::__init__ would throw exception.
The problem is that e.g. euca-upload-bundle checks to see if a bucket should be created before upload by doing a GET on the bucket and looking for a 404. This logic now fails.
Essentially, the logic in catch_nova_
def catch_nova_
# FIXME: find a way to wrap all handlers in the web.Application
def wrapper(*args, **kwargs):
try:
return target(*args, **kwargs)
except exception.NotFound:
raise web.HTTPError(404)
except exception.
raise web.HTTPError(403)
return wrapper
Related branches
- Jay Pipes (community): Needs Fixing
- Jesse Andrews (community): Approve
-
Diff: 53 lines (+18/-4)1 file modifiednova/objectstore/handler.py (+18/-4)
Changed in nova: | |
status: | Fix Committed → Fix Released |
setting to High since this breaks the prior API.