Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rgw: add missing error code for admin op API #7037

Merged
merged 7 commits into from Jan 8, 2016

Conversation

mathslinux
Copy link
Contributor

From http://docs.ceph.com/docs/master/radosgw/adminops/, corresponding error code should be returned for bad request

From http://docs.ceph.com/docs/master/radosgw/adminops/ when provided email
address exists, rgw should return EmailExists rather than UserAlreadyExists

Signed-off-by: Dunrong Huang <riegamaths@gmail.com>
From http://docs.ceph.com/docs/master/radosgw/adminops/ when provided key
exists, rgw should return KeyExists rather than BucketAlreadyExists.

Signed-off-by: Dunrong Huang <riegamaths@gmail.com>
From http://docs.ceph.com/docs/master/radosgw/adminops/ when invalid secret
key specified, rgw should return 400 with InvalidSecretKey

Signed-off-by: Dunrong Huang <riegamaths@gmail.com>
From http://docs.ceph.com/docs/master/radosgw/adminops/ when invalid key type
specified, rgw should return InvalidKeyType.

Signed-off-by: Dunrong Huang <riegamaths@gmail.com>
Signed-off-by: Dunrong Huang <riegamaths@gmail.com>
@mathslinux
Copy link
Contributor Author

fix #14162

From http://docs.ceph.com/docs/master/radosgw/adminops/ when attempt to
grant invalid admin capability, rgw should return InvalidCap rather than
InvalidArgument.

Signed-off-by: Dunrong Huang <riegamaths@gmail.com>
InvalidCapability is more readable

Signed-off-by: Dunrong Huang <riegamaths@gmail.com>
@mathslinux
Copy link
Contributor Author

@yehudasa yeah, it is more readable, and the adminops.rst should be updated. changes has been pushed, thank you for your review

yehudasa added a commit that referenced this pull request Jan 8, 2016
rgw: add missing error code for admin op API

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
@yehudasa yehudasa merged commit beabb20 into ceph:master Jan 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants