]> git.apps.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>
Wed, 10 Apr 2024 17:09:17 +0000 (13:09 -0400)
commitb5d5c55b5440fef27a63f43ea1e431ff2a4393d7
tree623cd08cddbb0f57b3feff76dd785b0427bd61c3
parent2cdddad82ecfc80e03a0b6269eee5981ab5b76f0
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>
src/rgw/rgw_common.cc
src/rgw/rgw_common.h
src/rgw/rgw_rest_pubsub.cc
src/test/rgw/bucket_notification/test_bn.py