]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: rest_conn: parse_json bails on failed parsing
authorAbhishek Lekshmanan <abhishek@suse.com>
Thu, 18 Apr 2019 11:49:52 +0000 (13:49 +0200)
committerAbhishek Lekshmanan <abhishek@suse.com>
Thu, 18 Apr 2019 11:49:52 +0000 (13:49 +0200)
commit2cee0fa3727e827128788407e80ac3181dc41e4a
treef9d633f9f9f324ab32f3656ccc409c1e64ef551e
parent4c79d02f6950b62e65fe9ab1b6d0602246e171ed
rgw: rest_conn: parse_json bails on failed parsing

Currently the json parser parsing errors get ignored while we check the value as
integer reading from a bool. This causes failures in cases when for eg. XML is
supplied to the parser getting ignored and we fail later in the stack with the
default initialized value of T. Also drop the ignored ceph context

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
src/rgw/rgw_rest_conn.h