Skip to content

rgw: authorization avoids sal::Object::get_instance() - #68055

Merged
cbodley merged 2 commits into
ceph:mainfrom
cbodley:wip-rgw-req-state-keys
Apr 30, 2026
Merged

cbodley merged 2 commits into
ceph:mainfrom
cbodley:wip-rgw-req-state-keys

Conversation

@cbodley

@cbodley cbodley commented Mar 27, 2026

Copy link
Copy Markdown
Contributor

s->object->get_instance() may not match the requested versionId. if no versionId was requested, reading from the sal::Object will follow the olh and change get_instance() to return the current version it found

rely on the request parameters directly instead of going through sal::Object

parse the requested object name/version into req_state::object_key and src_object_key instead of relying on sal::Object to preserve it

all code paths that assigned to req_state::object or src_object now first assign to the key

Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

cbodley added 2 commits March 27, 2026 11:12
parse the requested object name/version into req_state::object_key and
src_object_key instead of relying on sal::Object to preserve it

all code paths that assigned to req_state::object or src_object now
first assign to the key

Signed-off-by: Casey Bodley <[email protected]>
s->object->get_instance() may not match the requested versionId. if
no versionId was requested, reading from the sal::Object will follow the
olh and change get_instance() to return the current version it found

rely on the request parameters directly instead of going through
sal::Object

Signed-off-by: Casey Bodley <[email protected]>
@github-actions github-actions Bot added the rgw label Mar 27, 2026
@cbodley
cbodley marked this pull request as ready for review March 27, 2026 15:52
@cbodley
cbodley requested a review from a team as a code owner March 27, 2026 15:52
@cbodley

cbodley commented Mar 27, 2026

Copy link
Copy Markdown
Contributor Author

passing local s3-tests

@pritha-srivastava

Copy link
Copy Markdown
Contributor

tested this fix downstream, and it works

@anrao19

anrao19 commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

Pr testing completed. Tacker approved by @ivancich. More details : https://tracker.ceph.com/issues/76230
@cbodley , if no further testing needed, pr can be merged

@cbodley
cbodley merged commit f3c2f64 into ceph:main Apr 30, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants