]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: handle empty POST condition 11581/head
authorYehuda Sadeh <yehuda@redhat.com>
Thu, 20 Oct 2016 17:17:36 +0000 (10:17 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Thu, 20 Oct 2016 19:30:49 +0000 (12:30 -0700)
commit23cb642243e09ca4a8e104f62a3bb7b2cbb6ea12
treec8d1a498a195fa6c3bffcd7588ebf214bddabe63
parent1b90ab375eaa3dba76c5dda8b504a3c2d77faa58
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>
src/rgw/rgw_policy_s3.cc