]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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>
Wed, 20 May 2026 14:20:22 +0000 (10:20 -0400)
commit8bdd10a9ea609af24d2bf38fb41e5a464c95c7a3
tree05e2370481b3caa7f6a752f86877cf0913690037
parentd4b5a2bcc80672f6d1ca76f816cbe546cca493fa
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