]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: handle empty POST condition 11809/head
authorYehuda Sadeh <yehuda@redhat.com>
Thu, 20 Oct 2016 17:17:36 +0000 (10:17 -0700)
committerNathan Cutler <ncutler@suse.com>
Mon, 7 Nov 2016 10:00:23 +0000 (11:00 +0100)
commitd50a5018c43d200e4cd36daa7826b2b4c17434ed
tree9adab0db9df7874315d783d1604596e624e5cc54
parentf776699fd00ff5f0deea15ec4f2efb991831b055
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