]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: consider IfExists when evaluating policy conditions 16463/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 20 Jul 2017 20:58:18 +0000 (16:58 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 21 Jul 2017 20:23:09 +0000 (16:23 -0400)
Fixes: http://tracker.ceph.com/issues/20708
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_iam_policy.cc

index f90bfac788310e1d45dacd96aa7bf73be0320c1a..a04bb173dd516096e00f299ada4a2a0d65dcce86 100644 (file)
@@ -912,7 +912,7 @@ bool Condition::eval(const Environment& env) const {
   }
 
   if (i == env.end()) {
-    return false;
+    return ifexists;
   }
   const auto& s = i->second;