Skip to content

rgw/admin: fix op-mask url parameter #1101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 11, 2025
Merged

rgw/admin: fix op-mask url parameter #1101

merged 1 commit into from
Apr 11, 2025

Conversation

sj14
Copy link
Contributor

@sj14 sj14 commented Apr 8, 2025

The op-mask was not correctly transmitted when creating a user.

Checklist

  • Added tests for features and functional changes
  • Public functions and types are documented
  • Standard formatting is applied to Go code
  • Is this a new API? Added a new file that begins with //go:build ceph_preview
  • Ran make api-update to record new APIs

New or infrequent contributors may want to review the go-ceph Developer's Guide including the section on how we track API Status and the API Stability Plan.

The go-ceph project uses mergify. View the mergify command guide for information on how to interact with mergify. Add a comment with @Mergifyio rebase to rebase your PR when github indicates that the PR is out of date with the base branch.

Copy link
Collaborator

@phlogistonjohn phlogistonjohn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please expand the commit message to explain how changing the struct tag fixes the issue? Thanks.

@phlogistonjohn
Copy link
Collaborator

I Just realized that this PR overlaps with #1054. Were you aware of that? It might have been worthwhile to note that this covers the same topic but also has tests.

@sj14
Copy link
Contributor Author

sj14 commented Apr 8, 2025

I Just realized that this PR overlaps with #1054. Were you aware of that? It might have been worthwhile to note that this covers the same topic but also has tests.

Sorry, I didn't see that PR.

@phlogistonjohn phlogistonjohn added the no-API This PR does not include any changes to the public API of a go-ceph package label Apr 8, 2025
@sj14 sj14 force-pushed the op-mask branch 4 times, most recently from 4c87dbe to a5ce37b Compare April 9, 2025 08:05
@sj14
Copy link
Contributor Author

sj14 commented Apr 9, 2025

Could you please expand the commit message to explain how changing the struct tag fixes the issue? Thanks.

Adjusted.

@phlogistonjohn phlogistonjohn added the extended-review A submitter or reviewer feels the PR needs an extended review period label Apr 9, 2025
Copy link
Collaborator

@phlogistonjohn phlogistonjohn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks OK to me. Since rgw is my weak area with regards to go-ceph, I'm asking for a 2nd review on this PR.

Copy link
Collaborator

@anoopcs9 anoopcs9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah..I see that the CreateUser and ModifyUser API already make use of "op-mask" but the proper url tag was the missing piece.

lgtm, thanks.

@phlogistonjohn
Copy link
Collaborator

@Mergifyio rebase

When creating a user, the RGW expects the op-mask in the URL with a dash instead of an
underscore as used for the JSON schema.

Signed-off-by: Simon Jürgensmeyer <simon.juergensmeyer@hetzner-cloud.de>
Copy link

mergify bot commented Apr 11, 2025

rebase

✅ Branch has been successfully rebased

@phlogistonjohn phlogistonjohn removed the extended-review A submitter or reviewer feels the PR needs an extended review period label Apr 11, 2025
@mergify mergify bot merged commit 79e4bfe into ceph:master Apr 11, 2025
15 checks passed
@sj14 sj14 deleted the op-mask branch April 12, 2025 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-API This PR does not include any changes to the public API of a go-ceph package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants