Skip to content

tentacle: RGW: handle plain-text object tags in RGWObjTags::decode() - #67927

Merged
batrick merged 1 commit into
ceph:tentaclefrom
BBoozmen:wip-75635-tentacle
May 9, 2026
Merged

batrick merged 1 commit into
ceph:tentaclefrom
BBoozmen:wip-75635-tentacle

Conversation

@BBoozmen

Copy link
Copy Markdown
Contributor

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
@BBoozmen
BBoozmen requested a review from a team as a code owner March 20, 2026 19:09
@BBoozmen BBoozmen added this to the tentacle milestone Mar 20, 2026
@BBoozmen BBoozmen added the rgw label Mar 20, 2026
@BBoozmen BBoozmen added needs-qa wip-oozmen-testing for teuthology integration testing to be used via build-integration-branch.sh and removed wip-oozmen-testing for teuthology integration testing to be used via build-integration-branch.sh labels Apr 22, 2026

@batrick batrick left a comment

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.

@batrick batrick left a comment

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.

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)

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.

@batrick
batrick merged commit de742b2 into ceph:tentacle May 9, 2026
7 checks passed
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