diff options
author | Yehuda Sadeh <yehuda@inktank.com> | 2013-08-21 17:22:46 -0700 |
---|---|---|
committer | Yehuda Sadeh <yehuda@inktank.com> | 2013-08-21 17:22:46 -0700 |
commit | 2d4d37f3bd2265f03ecaba75455a82b3a1422bce (patch) | |
tree | de3dd66dfce6076713d93406c46bb94ceaea15ef | |
parent | ea86dcd60e9a4adabb1bac647ca48e259da55fae (diff) | |
download | ceph-2d4d37f3bd2265f03ecaba75455a82b3a1422bce.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 ee73bb94fa5..c86f92f0d6a 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; |