Merge "Set path_info in sub_slo manifest GET requests"

This commit is contained in:
Jenkins 2013-10-02 06:46:00 +00:00 committed by Gerrit Code Review
commit 9b9e50cec0
1 changed files with 2 additions and 1 deletions

View File

@ -417,6 +417,7 @@ class ObjectController(Controller):
new_req = incoming_req.copy_get()
new_req.method = 'GET'
new_req.range = None
new_req.path_info = '/'.join(['', account, container, obj])
if partition is None:
try:
partition = self.app.object_ring.get_part(
@ -427,7 +428,7 @@ class ObjectController(Controller):
new_req.path)
valid_resp = self.GETorHEAD_base(
new_req, _('Object'), self.app.object_ring, partition,
'/'.join(['', account, container, obj]))
new_req.path_info)
if 'swift.authorize' in incoming_req.environ:
incoming_req.acl = valid_resp.headers.get('x-container-read')