]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw/s3: apply vhost logic to s3 only
authorCasey Bodley <cbodley@redhat.com>
Thu, 3 Jul 2025 16:01:18 +0000 (12:01 -0400)
committerCasey Bodley <cbodley@redhat.com>
Tue, 21 Oct 2025 15:42:25 +0000 (11:42 -0400)
commit806be3347ebf552bc75ff8cb1b8cf8cf29ed139d
treee66f4ad99f9c537a9a063fab641853d132a65363
parentf3436f7d386127cbee1907f23b308d846dc92ad2
rgw/s3: apply vhost logic to s3 only

the vhost-style transformations ran in RGWREST::preprocess() before we
even route the request, so applied to every REST API in radosgw

vhost-style requests are specific to the S3 API, so they should only
apply after being routed to RGWRESTMgr_S3

extract the vhost logic from RGWREST::proprocess() into
rgw_rest_transform_s3_vhost_style(), and call that only from
RGWRESTMgr_S3::get_resource_mgr_as_default()

url-decoding of request_uri into decoded_uri is now duplicated in
preprocess() to apply to all requests, then again after vhost-style
transforms the request_uri

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_rest.cc
src/rgw/rgw_rest.h
src/rgw/rgw_rest_s3.cc