Repository navigation
rgw/iam: emit ResponseMetadata after the Result element - #73215
Conversation
`GetRole`, `GetRolePolicy`, `ListRolePolicies`,
`ListAttachedRolePolicies` and `GetAccountSummary` wrote
`<ResponseMetadata>` before `<XResult>` inside the `<XResponse>`
element. AWS always emits the result first, and SDKs with generated
`awsQuery` deserializers (e.g. the Rust `aws-sdk-iam`) require the first
child of `<XResponse>` to be `<XResult>`, so these calls fail with:
```
invalid result, expected GetRoleResult got StartEl { ... "ResponseMetadata" ... }
```
`botocore` tolerates either order, which is why the AWS CLI is
unaffected.
Move `ResponseMetadata` after the Result section, matching the other IAM
handlers.
Fixes: https://tracker.ceph.com/issues/82250
Signed-off-by: Benoît Knecht <[email protected]>
|
Thank you for your contribution. Since you are not yet a member of the Ceph organization with write permissions on ceph/ceph.git, our CI will not automatically run. Any member of the Ceph organization may label this PR |
|
This PR has been added to wip-anrao4-testing-2026-11-02-0647-main. |
pr testing completed and approved by @ivancich more details on :https://tracker.ceph.com/issues/82521 |
|
This is an automated message by src/script/redmine-upkeep.py. I have resolved the following tracker ticket due to the merge of this PR: No backports are pending for the ticket. If this is incorrect, please update the tracker |
|
@anrao19 Given that this is a pretty trivial change, yet an important one for compatibility, I think it's a good candidate for being backported to all supported versions of Ceph. What's the process for this? Do I need to set something on the tracker issue besides resetting to |
Nevermind, I see that the backport tickets have been created. 👍 |
just that and setting the target releases in the Backport field |
GetRole,GetRolePolicy,ListRolePolicies,ListAttachedRolePoliciesandGetAccountSummarywrote<ResponseMetadata>before<XResult>inside the<XResponse>element. AWS always emits the result first, and SDKs with generatedawsQuerydeserializers (e.g. the Rustaws-sdk-iam) require the first child of<XResponse>to be<XResult>, so these calls fail with:botocoretolerates either order, which is why the AWS CLI is unaffected.Move
ResponseMetadataafter the Result section, matching the other IAM handlers.Fixes: https://tracker.ceph.com/issues/82250
Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.