Actions
Bug #46485
closedrgw: lc: Segmentation Fault when the tag of the object was not found in the rule
Status:
Resolved
Priority:
Normal
Assignee:
Or Friedmann
Target version:
-
% Done:
0%
Source:
Tags:
Backport:
octopus, nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Description
master needs the following patch in src/rgw/rgw_lc.cc
@@ -454,6 +454,8 @@ static inline bool has_all_tags(const lc_op& rule_action, for (const auto& tag : object_tags.get_tags()) { const auto& rule_tags = rule_action.obj_tags->get_tags(); const auto& iter = rule_tags.find(tag.first); + if(iter == rule_tags.end()) + continue; if(iter->second == tag.second) { tag_count++;
Patch taken from https://github.com/ceph/ceph/pull/35996 which could not be considered initially because it was opened against the wrong branch.
Actions