]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/notification: fix segmentation fault and topic listing logic 60774/head
authorOshrey Avraham <oshrey16@gmail.com>
Mon, 18 Nov 2024 10:06:22 +0000 (12:06 +0200)
committerYuval Lifshitz <ylifshit@ibm.com>
Tue, 19 Nov 2024 16:49:58 +0000 (16:49 +0000)
commitde3e443217557ab479155f30f16f8b9d2e9e6fa0
tree90c5b30cc4c8bc242066ff05e4c66ab387a9e87f
parent05e2ade13292e7d924e6385ea234f58c13eb2d51
rgw/notification: fix segmentation fault and topic listing logic

- Fixed a segmentation fault caused by a null bucket pointer in RGWPSListTopicsOp::execute()
- Corrected logic to use get_topics_v2 when supported, with fallback otherwise

Fixes: https://tracker.ceph.com/issues/68756
Signed-off-by: Oshrey Avraham <oshrey16@gmail.com>
(cherry picked from commit d27dab240d568a705ff45e2231be650673279ebe)
src/rgw/rgw_rest_pubsub.cc