]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/notifications: fix topic action fail with "MethodNotAllowed" 33978/head
authorYuval Lifshitz <yuvalif@yahoo.com>
Sun, 15 Mar 2020 12:19:52 +0000 (14:19 +0200)
committerYuval Lifshitz <yuvalif@yahoo.com>
Wed, 18 Mar 2020 10:14:06 +0000 (12:14 +0200)
Note that this ommit cannot be cherry-picked from master because it's fixing a
regression introduced by a backport which went into 14.2.8.

Fixes: 33bb1bad74234b913a82bb3773022113b02ffa75
Fixes: http://tracker.ceph.com/issues/44614
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
src/rgw/rgw_rest_s3.cc

index 46cb1d98d9939484424aa64d486ee7b3434ba33e..df3ad393fe611efdcb4f7305a7af86cb130703a1 100644 (file)
@@ -3512,6 +3512,9 @@ RGWOp *RGWHandler_REST_Service_S3::op_post()
     RGWHandler_REST_PSTopic_AWS topic_handler(auth_registry, post_body);
     topic_handler.init(store, s, s->cio);
     auto op = topic_handler.get_op(store);
+    if (op) {
+      return op;
+    }
   }
 
   return NULL;