]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/pubsub: add ERR_AUTHORIZATION -> AuthorizationError
authorCasey Bodley <cbodley@redhat.com>
Tue, 12 Mar 2024 23:05:13 +0000 (19:05 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 12 Apr 2024 19:34:30 +0000 (15:34 -0400)
commite6bf633dfb3021ef72273f1f116d1e4bf6a17922
treebe5b1115a23f5c1e091e38b67928d1ae3817c65a
parent1534f8f249bf679e1c520748c0b65ddca2535c35
rgw/pubsub: add ERR_AUTHORIZATION -> AuthorizationError

sns docs specify AuthorizationError as the 403 error code rather than
s3's AccessDenied:

    https://docs.aws.amazon.com/sns/latest/api/API_CreateTopic.html#API_CreateTopic_Errors

boto3 sns clients can catch this as AuthorizationErrorException

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit b5d5c55b5440fef27a63f43ea1e431ff2a4393d7)
src/rgw/rgw_common.cc
src/rgw/rgw_common.h
src/rgw/rgw_rest_pubsub.cc
src/test/rgw/bucket_notification/test_bn.py