Project

General

Profile

Bug #38116

rgw: GetBucketAcl on non-existing bucket doesn't throw NoSuchBucket

Added by Matt Benjamin 5 months ago. Updated 2 months ago.

Status:
Resolved
Priority:
High
Assignee:
Target version:
-
Start date:
01/30/2019
Due date:
% Done:

0%

Source:
Tags:
Backport:
mimic, luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

This reproduces on our downstream Luminous baseline, appears logically implicated on master (not verified).

Run GetBucketAcl on a bucket name that doesn't exist

Steps to Reproduce:
1. call GetBucketAcl with a non-existing bucket name
2. evaluate the result

e.g.:

s3_staging_resource = boto3.resource(
's3',
aws_access_key_id=staging_ceph_access_key,
aws_secret_access_key=staging_ceph_secret_key,
endpoint_url=staging_ceph_endpoint_url
)

bucket_acl = s3_staging_resource.BucketAcl('anonexistingbucket')
print(bucket_acl.grants)

Actual results:
[{u'Grantee': {u'Type': 'CanonicalUser', u'DisplayName': 'M. Tester', u'ID': 'testid'}, u'Permission': 'FULL_CONTROL'}]

Expected results:
An error occurred (NoSuchBucket) when calling the GetBucketAcl operation: Unknown


Related issues

Copied to rgw - Backport #38353: mimic: rgw: GetBucketAcl on non-existing bucket doesn't throw NoSuchBucket Resolved
Copied to rgw - Backport #38354: luminous: rgw: GetBucketAcl on non-existing bucket doesn't throw NoSuchBucket Resolved

History

#2 Updated by Matt Benjamin 5 months ago

  • Status changed from Need Review to Need Test

#3 Updated by Matt Benjamin 4 months ago

  • Status changed from Need Test to Pending Backport

#4 Updated by Nathan Cutler 4 months ago

  • Copied to Backport #38353: mimic: rgw: GetBucketAcl on non-existing bucket doesn't throw NoSuchBucket added

#5 Updated by Nathan Cutler 4 months ago

  • Copied to Backport #38354: luminous: rgw: GetBucketAcl on non-existing bucket doesn't throw NoSuchBucket added

#6 Updated by Nathan Cutler 2 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF