]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix http error checks in keystone/barbican/vault clients 53846/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 5 Oct 2023 15:59:52 +0000 (11:59 -0400)
committerCasey Bodley <cbodley@redhat.com>
Thu, 5 Oct 2023 15:59:56 +0000 (11:59 -0400)
commit36622e19c7fb217f32f74aada0d224785344f565
treed714074e1b3eb39edfe03c4711752d65d1d1b120
parent7f32bce6c582eede57234d6b9666cecc605cfc96
rgw: fix http error checks in keystone/barbican/vault clients

when RGWHTTPManager encounters an http error, it uses
rgw_http_error_to_errno() to map that to a negative posix error code.
RGWHTTPClient::process() returns that mapped error code, and exposes the
original http error via get_http_status()

the http client code for keystone, barbican, and vault were returning
early on the errors from process(), so weren't getting to the http error
checks

these clients now check for specific http errors before testing the
result of process()

Fixes: https://tracker.ceph.com/issues/62989
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_auth_keystone.cc
src/rgw/rgw_kms.cc