]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/multisite: rgw_forward_request_to_master() preserves Error responses
authorCasey Bodley <cbodley@redhat.com>
Sat, 26 Apr 2025 02:46:12 +0000 (22:46 -0400)
committerCasey Bodley <cbodley@redhat.com>
Tue, 29 Apr 2025 15:17:31 +0000 (11:17 -0400)
commit637bdd7ca5ffadf2e2f9823e5687329cb3d68b5d
tree988b6bdce4ee4e96099d6aa99be3dd6c9b2b07f0
parent36583eb9bdf0692790b0b6046a00e5b060da6c93
rgw/multisite: rgw_forward_request_to_master() preserves Error responses

when a forwarded request fails on the master zone, the local zone should
return that same error response back to the client. this means
reproducing both the http error and the aws xml <Error> response

rgw_forward_request_to_master() stores these errors in s->err, and
set_req_state_err() now avoids overwriting existing an error

Fixes: https://tracker.ceph.com/issues/71098
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/driver/rados/rgw_bucket.cc
src/rgw/driver/rados/rgw_rest_bucket.cc
src/rgw/driver/rados/rgw_rest_user.cc
src/rgw/rgw_common.cc
src/rgw/rgw_op.cc
src/rgw/rgw_op.h
src/rgw/rgw_rest_account.cc
src/rgw/rgw_rest_pubsub.cc