Skip to content

rgw: keep underscore in metatdata key - #38737

Merged
ivancich merged 1 commit into
ceph:masterfrom
IlsooByun:objmeta-key-underscore
Apr 7, 2021
Merged

ivancich merged 1 commit into
ceph:masterfrom
IlsooByun:objmeta-key-underscore

Conversation

@IlsooByun

@IlsooByun IlsooByun commented Dec 30, 2020 •

Copy link
Copy Markdown
Contributor

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

Signed-off-by: Ilsoo Byun [email protected]

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

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 api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

@github-actions github-actions Bot added the rgw label Dec 30, 2020
@mattbenjamin mattbenjamin self-assigned this Mar 11, 2021
@mattbenjamin
mattbenjamin self-requested a review March 11, 2021 18:16
@mattbenjamin

Copy link
Copy Markdown
Contributor

pushed this ceph/s3-tests#387

@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.

lgtm

@ivancich ivancich added the wip-eric-testing-2 for ivancich testing label Apr 1, 2021
@ivancich
ivancich merged commit 116ef52 into ceph:master Apr 7, 2021
@ivancich ivancich removed needs-qa wip-eric-testing-2 for ivancich testing labels Apr 7, 2021
@ivancich

ivancich commented Apr 7, 2021

Copy link
Copy Markdown
Member

@IlsooByun and @mattbenjamin Right now there's no backport listed on the tracker. I'd like to add backports and change status to Pending Backports. Any objection?

@cbodley

cbodley commented Jan 14, 2022

Copy link
Copy Markdown
Contributor

i finally tracked the tempest test_create_container_with_remove_metadata_key/value test failures from https://tracker.ceph.com/issues/51772 back to this PR, which (unintentionally?) changed the on-disk format of user metadata xattrs

given the example header x-amz-meta-key_1: value_1 from https://tracker.ceph.com/issues/48716, the stored xattr name changed from user.rgw.x-amz-meta-key-1 to user.rgw.x-amz-meta-key_1 with this PR

as a result, swift is unable to remove these xattrs because get_rmattrs_from_headers() transforms headers like X-Remove-Container-Meta-key_1 to the old format using lowercase_dash_http_attr(), so is unable to match any user metadata in this new key_1 format

if we change swift to use lowercase_underscore_http_attr() to match this new format, we'd still be unable to remove any user metadata written in the old format (before this PR)

@cbodley

cbodley commented Jan 14, 2022

Copy link
Copy Markdown
Contributor

if we change swift to use lowercase_underscore_http_attr() to match this new format, we'd still be unable to remove any user metadata written in the old format (before this PR)

this seems like the best compromise to me, so i opened #44599 with this change

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.

4 participants