Repository navigation
tentacle: RGW: handle plain-text object tags in RGWObjTags::decode() - #67927
Merged
Merged
Conversation
Objects created via multipart upload have had their tags stored as plain URL-encoded strings (e.g. "ttl_tag=23") since the tagging feature was introduced in 2017, because RGWInitMultipart::execute() never called encode_obj_tags_attr() (tracker ceph#53016). While ceph#53016 fixes the write path going forward, existing objects on disk still carry plain-text tags. RGWObjTags::decode() throws buffer::error on these, causing lifecycle tag matching to fail with -EIO and GetObjectTagging to return empty results. Fall back to set_from_string() when binary decoding fails, so both formats are handled transparently. Fixes: https://tracker.ceph.com/issues/74917 Signed-off-by: Oguzhan Ozmen <[email protected]> (cherry picked from commit b2d9dbb) Conflicts: src/test/rgw/CMakeLists.txt - some unittests, while available in main, are not available in tentacle
batrick
approved these changes
May 9, 2026
batrick
reviewed
May 9, 2026
batrick
left a comment
Member
There was a problem hiding this comment.
Automated Backport Parity Review - Backport Deviation Alert
A conflict or unapproved deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.
How to proceed:
- Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git
Conflicts:block intact) and include an explanation for changes. - Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
- Component Leads (Review): Please review the Range Diff below to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting
/audit override.
Be familiar with the rules and guidelines for writing backports.
Affected File(s)
src/test/rgw/CMakeLists.txt
Range Diff
Click to expand
--- Original (b2d9dbb8)
+++ Backport (04a1db8c)
@@ -15,3 +15,8 @@
Fixes: https://tracker.ceph.com/issues/74917
Signed-off-by: Oguzhan Ozmen <[email protected]>
+(cherry picked from commit b2d9dbb81e9e6aa3cbb184488ccae16253586257)
+
+Conflicts:
+ src/test/rgw/CMakeLists.txt
+- some unittests, while available in main, are not available in tentacle
================================================================================
RANGE DIFF
================================================================================
1: b2d9dbb81e9 ! 1: 04a1db8c0ed rgw: handle plain-text object tags in RGWObjTags::decode()
@@ Commit message
Fixes: https://tracker.ceph.com/issues/74917
Signed-off-by: Oguzhan Ozmen <[email protected]>
+ (cherry picked from commit b2d9dbb81e9e6aa3cbb184488ccae16253586257)
+
+ Conflicts:
+ src/test/rgw/CMakeLists.txt
+ - some unittests, while available in main, are not available in tentacle
## src/rgw/rgw_tag.h ##
@@ src/rgw/rgw_tag.h: protected:
@@ src/rgw/rgw_tag.h: protected:
void dump(Formatter *f) const;
## src/test/rgw/CMakeLists.txt ##
-@@ src/test/rgw/CMakeLists.txt: add_catch2_test_rgw(rgw_hex)
- add_executable(unittest_rgw_async_utils test_rgw_async_utils.cc)
- add_ceph_unittest(unittest_rgw_async_utils)
- target_link_libraries(unittest_rgw_async_utils ${rgw_libs} ${UNITTEST_LIBS})
+@@ src/test/rgw/CMakeLists.txt: target_link_libraries(ceph_test_datalog
+ ${UNITTEST_LIBS}
+ ${rgw_libs})
+ install(TARGETS ceph_test_datalog DESTINATION ${CMAKE_INSTALL_BINDIR})
+
+add_executable(unittest_rgw_tag test_rgw_tag.cc)
+add_ceph_unittest(unittest_rgw_tag)Commit Parity Visualizer
| BACKPORT PR #67927 | SOURCE PR | SOURCE STATUS |
|---|---|---|
| 04a1db8 rgw: handle plain-text object tags in RGWObjTags::decode() | PR #67336 | b2d9dbb rgw: handle plain-text object tags in RGWObjTags::decode() |
🛟 Need Help?
If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.
📋 Component Lead / Release Manager
To override the audit failure, apply releng-audit-override label or comment /audit override.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
backport tracker: https://tracker.ceph.com/issues/75635
backport of #67336
parent tracker: https://tracker.ceph.com/issues/74917
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh