Repository navigation
squid: RGW: handle plain-text object tags in RGWObjTags::decode() - #67926
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 squid
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 (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.
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
|
/audit override |
|
✅ Audit Override Applied by @adamemerson. |
|
This PR has been added to wip-yuri2-testing-20260602.202206-squid. |
|
This PR has been added to wip-yuri2-testing-20260622.144905-squid. |
|
This PR has been removed from wip-yuri2-testing-20260622.144905-squid. |
|
This PR has been added to wip-yuri9-testing-20260622.172413-squid. |
backport tracker: https://tracker.ceph.com/issues/75636
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