Project

General

Profile

Actions

Bug #22272

closed

S3 API: incorrect error code on GET website bucket

Added by Dmitry Plyakin over 6 years ago. Updated about 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
% Done:

0%

Source:
Tags:
Backport:
jewel luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

RGW returns "NoSuchKey" error code on GET website, when bucket doesn't have website configuration:
Request:
GET /somebucket?website HTTP/1.1

Response:
HTTP/1.1 404 Not Found
...

<Error>
<Code>NoSuchKey</Code>
<BucketName>somebucket</BucketName>
...
</Error>

It should return "NoSuchWebsiteConfiguration", like in AWS S3:
Request:
GET /somebucket?website HTTP/1.1

Response:
HTTP/1.1 404 Not Found
...

<Error>
<Code>NoSuchWebsiteConfiguration</Code>
<BucketName>somebucket</BucketName>
...
</Error>


Related issues 2 (0 open2 closed)

Copied to rgw - Backport #22425: jewel: S3 API: incorrect error code on GET website bucketResolvedDmitry PlyakinActions
Copied to rgw - Backport #22426: luminous: S3 API: incorrect error code on GET website bucketResolvedDmitry PlyakinActions
Actions

Also available in: Atom PDF