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.
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>
- Status changed from New to 7
- Backport set to jewel luminous
- Status changed from 7 to Pending Backport
- Copied to Backport #22432: luminous: S3 API: incorrect error code on GET website bucket added
- Copied to Backport #22433: jewel: S3 API: incorrect error code on GET website bucket added
- Copied to deleted (Backport #22433: jewel: S3 API: incorrect error code on GET website bucket)
- Copied to Backport #22425: jewel: S3 API: incorrect error code on GET website bucket added
- Copied to deleted (Backport #22432: luminous: S3 API: incorrect error code on GET website bucket)
- Copied to Backport #22426: luminous: S3 API: incorrect error code on GET website bucket added
Dmitry Plyakin wrote:
I created two issues already...
http://tracker.ceph.com/issues/22425
http://tracker.ceph.com/issues/22426
What should i do with them?
Sorry for the confusion - the issues you created were not linked to this one via "Copied to" in the "Related issues" section, so the automated scripting didn't know about them and created new issues.
Cleaned it up manually.
Nathan Cutler wrote:
Sorry for the confusion - the issues you created were not linked to this one via "Copied to" in the "Related issues" section, so the automated scripting didn't know about them and created new issues.
Cleaned it up manually.
That's ok! And what should i do next time? Wait for script? I can't link issues by myself...
That's ok! And what should i do next time? Wait for script? I can't link issues by myself...
The links get created automatically if you use the "Copy" function.
For example, at the bottom of http://tracker.ceph.com/issues/22446 I have the following options:
Edit Log time Watch Copy Delete
You probably don't see all of those, but if "Copy" is there you can use it to create a new issue and the copy links will get created.
That said, however, in practice I would either (a) wait for the script, or (b) go ahead and open the backport PR and ping me (@Nathan Cutler) in it, saying something like "Hey, this is a backport of such-and-such which doesn't have backport issue created yet".
I don't have "Copy" button. :(
OK, next time I'll do as you say.
- Status changed from Pending Backport to Resolved
Also available in: Atom
PDF