Skip to content

squid: RGW: handle plain-text object tags in RGWObjTags::decode() - #67926

Merged
neha-ojha merged 1 commit into
ceph:squidfrom
BBoozmen:wip-75636-squid
Jun 24, 2026
Merged

neha-ojha merged 1 commit into
ceph:squidfrom
BBoozmen:wip-75636-squid

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 squid
@BBoozmen
BBoozmen requested a review from a team as a code owner March 20, 2026 18:16
@BBoozmen BBoozmen added this to the squid milestone Mar 20, 2026
@BBoozmen BBoozmen added the rgw label Mar 20, 2026
@batrick batrick added the releng-audit-fail Release engineering: failed backport verification audit. label May 14, 2026
@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label May 14, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

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 (4acad93e)
@@ -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 squid

================================================================================
RANGE DIFF
================================================================================

1:  b2d9dbb81e9 ! 1:  4acad93ee7e 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 squid
     
      ## 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: if(WITH_RADOSGW_POSIX)
    +   target_link_libraries(unittest_posix_bucket_cache  ${UNITTEST_LIBS}
    +     ${rgw_libs} ${LMDB_LIBRARIES})
    + endif(WITH_RADOSGW_POSIX)
     +
     +add_executable(unittest_rgw_tag test_rgw_tag.cc)
     +add_ceph_unittest(unittest_rgw_tag)

Commit Parity Visualizer

BACKPORT PR #67926 SOURCE PR SOURCE STATUS
4acad93 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.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.

CI Run Log: View Workflow Details

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label May 14, 2026
@adamemerson

Copy link
Copy Markdown
Contributor

/audit override

@github-actions github-actions Bot added releng-audit-override and removed releng-audit-fail Release engineering: failed backport verification audit. labels May 26, 2026
@github-actions

Copy link
Copy Markdown

✅ Audit Override Applied by @adamemerson.

@yuriw

yuriw commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri2-testing-20260602.202206-squid.

@yuriw

yuriw commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri2-testing-20260622.144905-squid.

@yuriw

yuriw commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

This PR has been removed from wip-yuri2-testing-20260622.144905-squid.

@yuriw

yuriw commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri9-testing-20260622.172413-squid.

@neha-ojha
neha-ojha merged commit 8d864a8 into ceph:squid Jun 24, 2026
11 of 12 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.

5 participants