summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@inktank.com>2013-08-21 17:22:46 -0700
committerYehuda Sadeh <yehuda@inktank.com>2013-09-04 16:11:20 -0700
commitdf4f712f4aa64eca0cc2e5df50702256cacfb51d (patch)
tree481cfff5e8b4d2d3f1d20ca6f2fad6f5d5f9e879
parent77c2a331e0a66d241c098f2416e303224d82f777 (diff)
downloadceph-df4f712f4aa64eca0cc2e5df50702256cacfb51d.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.cc2
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;