In swift.proxy.Controller, logic in account_info and container_info is problematic

Bug #671644 reported by Greg Lange
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Fix Released
Undecided
Greg Lange

Bug Description

In both methods, result_code is not set properly.

If all the nodes return a 404, the response code should be a 404 instead of a -1.

Also, in account_info(), the logic for returning (partition, nodes) versus (None, None) is different when the response code is retrieved from memcache instead of determined by making requests of the nodes.

That logic should be, if the result_code is 200, return (partition, nodes) and if not return (None, None) in both places.

Related branches

Greg Lange (greglange)
Changed in swift:
assignee: nobody → Greg Lange (greglange)
Changed in swift:
status: New → Fix Committed
Chuck Thier (cthier)
Changed in swift:
milestone: none → 1.2.0
Chuck Thier (cthier)
Changed in swift:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.