]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: OPTIONS request doesn't need to read object info
authorYehuda Sadeh <yehuda@inktank.com>
Thu, 22 Aug 2013 00:22:46 +0000 (17:22 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Wed, 11 Sep 2013 16:45:14 +0000 (09:45 -0700)
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>
src/rgw/rgw_rest.cc

index 571e486964227554ae20bb194cac5c9128424dd9..05d67fbeeff0fd3467d7f90b3ee6123810180942 100644 (file)
@@ -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;