]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: improved error when listing indexless bucket
authorCasey Bodley <cbodley@redhat.com>
Wed, 8 Jan 2025 21:48:24 +0000 (16:48 -0500)
committerCasey Bodley <cbodley@redhat.com>
Tue, 25 Feb 2025 16:15:57 +0000 (11:15 -0500)
commitfa4c5cebd2b611c20b0fc9da122b138900cb571b
tree70c894ab7b3249c70e7f130d4cc1bfa29829fe1d
parentb05a9580f8e4f1a7d61d38f0fb8c5081750c9b44
rgw: improved error when listing indexless bucket

without this change, ListObjects would attempt to list index shard
objects that don't exist and fail with:

> ERROR: S3 error: 404 (NoSuchKey)

after:

> ERROR: S3 error: 405 (MethodNotAllowed): Indexless buckets cannot be listed

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_op.cc