s3api: Fix get_container_info missing some sysmeta info.
When get_container_info is called and not authenticated, it will
make a HEAD subrequest and get info by passing resp.sw_headers to
headers_to_container_info. This will lose all sysmeta stored in
resp.sysmeta_headers.
The patch fixes this by passing all sw_headers and
sysmeta_headers to headers_to_container_info.
Reviewed: https:/ /review. openstack. org/629926 /git.openstack. org/cgit/ openstack/ swift/commit/ ?id=a4298fb3ab0 71b1284fb7080f9 2c305c6b1cb445
Committed: https:/
Submitter: Zuul
Branch: master
commit a4298fb3ab071b1 284fb7080f92c30 5c6b1cb445
Author: Wang Yuxin <email address hidden>
Date: Mon Apr 23 17:44:30 2018 +0800
s3api: Fix get_container_info missing some sysmeta info.
When get_container_info is called and not authenticated, it will to_container_ info. This will lose all sysmeta stored in sysmeta_ headers.
make a HEAD subrequest and get info by passing resp.sw_headers to
headers_
resp.
The patch fixes this by passing all sw_headers and to_container_ info.
sysmeta_headers to headers_
Change-Id: I6e538ed7a748b6 0bdb9db7e894eae dc9d72559c1
Closes-Bug: #1765679