Project

General

Profile

Bug #45467

Put policy should return 204 instead of 200

Added by Pierre Ozoux almost 4 years ago. Updated about 3 years ago.

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

0%

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

Description

I have ceph version 14.2.8 (2d095e947a02261ce61424021bb43bd3022d35cb) nautilus (stable)

And I'm hitting the bug described here:
https://github.com/minio/mc/issues/2393#issuecomment-367447570

```
Ceph is returning 200 as output of put bucket policy. Please take a look at
https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTpolicy.html

If you look at the sample response, you can see that the returned status is 204

Ceph should be returning 204 instead of 200
```


Related issues

Copied to rgw - Backport #48426: nautilus: Put policy should return 204 instead of 200 Resolved
Copied to rgw - Backport #48427: octopus: Put policy should return 204 instead of 200 Resolved

History

#1 Updated by Matthew Oliver almost 4 years ago

Yup confirmed in master. When I put a bucket policy it returns a 200. Will take a look and raise a patch for it to return 204

#2 Updated by Matthew Oliver almost 4 years ago

Pushed up a PR to fix this https://github.com/ceph/ceph/pull/35059

Before the PR, a successful PUT bucket policy in the logs had:

2020-05-13T06:41:42.077+0000 7fe887ec1700  2 req 4 0.056000411s s3:put_bucket_policy completing
2020-05-13T06:41:42.077+0000 7fe887ec1700  2 req 4 0.056000411s s3:put_bucket_policy op status=0
2020-05-13T06:41:42.077+0000 7fe887ec1700  2 req 4 0.056000411s s3:put_bucket_policy http status=200

Afterwards:

2020-05-14T01:09:14.792+0000 7f8719517700  2 req 2 0.060000439s s3:put_bucket_policy completing
2020-05-14T01:09:14.792+0000 7f8719517700  2 req 2 0.060000439s s3:put_bucket_policy op status=1902
2020-05-14T01:09:14.792+0000 7f8719517700  2 req 2 0.060000439s s3:put_bucket_policy http status=204

#3 Updated by Nathan Cutler almost 4 years ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 35059

#4 Updated by Nathan Cutler almost 4 years ago

  • Backport set to octopus, nautilus

#5 Updated by Pierre Ozoux almost 4 years ago

Wow, it was fast :)

Thanks a lot for looking into this and fixing that fast.

Have a nice day!

#6 Updated by J. Eric Ivancich over 3 years ago

  • Status changed from Fix Under Review to Pending Backport

#7 Updated by Nathan Cutler over 3 years ago

  • Copied to Backport #48426: nautilus: Put policy should return 204 instead of 200 added

#8 Updated by Nathan Cutler over 3 years ago

  • Copied to Backport #48427: octopus: Put policy should return 204 instead of 200 added

#9 Updated by Nathan Cutler about 3 years ago

  • Status changed from Pending Backport to Resolved

While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".

Also available in: Atom PDF