diff options
author | Yehuda Sadeh <yehuda@inktank.com> | 2013-08-21 17:22:46 -0700 |
---|---|---|
committer | Yehuda Sadeh <yehuda@inktank.com> | 2013-09-11 09:45:14 -0700 |
commit | c3385d8a102faf5379559bb98cf89637ceda1579 (patch) | |
tree | 47f7c7101ebfca78e530ad7f4a84c09bb2ec6fc6 | |
parent | a5fdd44e5d8ce4b8d82273d83e27aea19e63aa7c (diff) | |
download | ceph-c3385d8a102faf5379559bb98cf89637ceda1579.tar.gz |
rgw: OPTIONS request doesn't need to read object info
This is a bucket-only operation, so we shouldn't look at the
object. Object may not exist and we might respond with Not
Exists response which is not what we want.
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
-rw-r--r-- | src/rgw/rgw_rest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rgw/rgw_rest.cc b/src/rgw/rgw_rest.cc index 571e4869642..05d67fbeeff 100644 --- a/src/rgw/rgw_rest.cc +++ b/src/rgw/rgw_rest.cc @@ -1062,7 +1062,7 @@ int RGWHandler_ObjStore::read_permissions(RGWOp *op_obj) case OP_COPY: // op itself will read and verify the permissions return 0; case OP_OPTIONS: - only_bucket = false; + only_bucket = true; break; default: return -EINVAL; |