Skip to content

rgw/swift: fix up underscores in swift user metadata - #44599

Closed
cbodley wants to merge 1 commit into
ceph:mainfrom
cbodley:wip-51772
Closed

cbodley wants to merge 1 commit into
ceph:mainfrom
cbodley:wip-51772

Conversation

@cbodley

@cbodley cbodley commented Jan 14, 2022 •

Copy link
Copy Markdown
Contributor

in 8cd8fc4, a fix for userscores in s3 user metadata changed the xattr format of these metadata names. this updates swift's metadata-removal path to match that underscore format. however, this breaks the ability for swift to remove any pre-existing user metadata with underscores :(

Fixes: https://tracker.ceph.com/issues/51772

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

@mattbenjamin mattbenjamin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think the change is valid. clearly the logic will now be compatible with...itself. It seems to me that makes the "breaks backward compat" argument less viable, at the very least. If we do need to address that, we can cross the bridge then, I guess

Comment thread src/rgw/rgw_rest.h
extern int dump_body(struct req_state* s, const std::string& str);
extern int recv_body(struct req_state* s, char* buf, size_t max);

std::string lowercase_underscore_http_attr(const std::string& orig);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

So apparently this function is already implemented in src/rgw_rest.cc, although not declared static. Cool!

@cbodley

cbodley commented Jan 17, 2022

Copy link
Copy Markdown
Contributor Author

while this worked in my manual testing, the two original tempest test cases are still failing, along with 8 new regressions: https://pulpito.ceph.com/cbodley-2022-01-17_17:19:22-rgw:tempest-wip-51772-distro-default-smithi/

@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@github-actions github-actions Bot added the stale label Mar 24, 2022
@djgalloway
djgalloway changed the base branch from master to main May 27, 2022 16:10
@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@github-actions github-actions Bot added the stale label Jan 11, 2023
@github-actions

Copy link
Copy Markdown

This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution!

@github-actions github-actions Bot closed this Feb 10, 2023
@cbodley

cbodley commented Feb 10, 2023

Copy link
Copy Markdown
Contributor Author

if anyone's interested in fixing this issue, i think https://tracker.ceph.com/issues/57646 is a prerequisite to sanely supporting both s3 and swift metadata

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