Comment 19 for bug 1929083

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to swift (stable/ussuri)

Reviewed: https://review.opendev.org/c/openstack/swift/+/792659
Committed: https://opendev.org/openstack/swift/commit/4a38f62b266759d5b077c1007c1f920ad3296715
Submitter: "Zuul (22348)"
Branch: stable/ussuri

commit 4a38f62b266759d5b077c1007c1f920ad3296715
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)