commit 24c086c8d072db9c77733b197e1e1b46a8989845
Author: Walter Doekes <email address hidden>
Date: Thu May 20 17:06:25 2021 +0200
tempurl: Fix PUT upload to temp url on py3
Without this change, the self._response_headers gets a dict_items() type
on PUT. But the rest of the code assumes that it is a list.
Bug manifestation:
File "swift/common/middleware/catch_errors.py", line 120,
in handle_request self._response_headers.append(('X-Trans-Id', trans_id))
AttributeError: 'dict_items' object has no attribute 'append'
Closes-Bug: #1929083
Change-Id: I5c398b6008716b64c668737e4201ba3b6ab3320b
(cherry picked from commit 77530136f13f1fc0d8625d43e1689427d4ee2fad)
Reviewed: https:/ /review. opendev. org/c/openstack /swift/ +/792655 /opendev. org/openstack/ swift/commit/ 24c086c8d072db9 c77733b197e1e1b 46a8989845
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/wallaby
commit 24c086c8d072db9 c77733b197e1e1b 46a8989845
Author: Walter Doekes <email address hidden>
Date: Thu May 20 17:06:25 2021 +0200
tempurl: Fix PUT upload to temp url on py3
Without this change, the self._response_ headers gets a dict_items() type
on PUT. But the rest of the code assumes that it is a list.
Bug manifestation:
File "swift/ common/ middleware/ catch_errors. py", line 120,
self. _response_ headers. append( ('X-Trans- Id', trans_id)) Error: 'dict_items' object has no attribute 'append'
in handle_request
Attribute
Closes-Bug: #1929083 64c668737e4201b a3b6ab3320b 0d8625d43e16894 27d4ee2fad)
Change-Id: I5c398b6008716b
(cherry picked from commit 77530136f13f1fc