]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: handle empty POST condition 11662/head
authorYehuda Sadeh <yehuda@redhat.com>
Thu, 20 Oct 2016 17:17:36 +0000 (10:17 -0700)
committerMatt Benjamin <mbenjamin@redhat.com>
Wed, 26 Oct 2016 17:18:18 +0000 (13:18 -0400)
commitdc2ffda7819d2ebeed3526d9e6da8f53221818de
treeb623945dcf61d6c1a64a8eca48d79fc8bd166703
parent0aee6331ad93a3caf212b84412bb648171758fff
rgw: handle empty POST condition

Fixes: http://tracker.ceph.com/issues/17635
Before accessing json entity, need to check that iterator is valid.
If there is no entry return appropriate error code.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 23cb642243e09ca4a8e104f62a3bb7b2cbb6ea12)
src/rgw/rgw_policy_s3.cc