]> git-server-git.apps.pok.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>
Fri, 2 May 2025 13:33:42 +0000 (09:33 -0400)
commitddb52a281df579489db28172892216a0797c71c5
tree51a2e2d3d022352caa6956b183f230048fe55d2d
parentdf044527dae4632df926584e4cdd09cd46acaed4
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>
(cherry picked from commit 637bdd7ca5ffadf2e2f9823e5687329cb3d68b5d)
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