]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/lifecycle: do not send lifecycle rules when GetLifeCycle failed 14528/head
authorliuchang0812 <liuchang0812@gmail.com>
Mon, 27 Mar 2017 05:08:12 +0000 (13:08 +0800)
committerNathan Cutler <ncutler@suse.com>
Mon, 3 Jul 2017 10:52:29 +0000 (12:52 +0200)
commitcac26471897b6126a9b95e02f1a93a3a5386dae1
tree198b6b837018b0e4694e64d8ad01001abe130fbf
parentf31033cb5bc7764b44871c15717aed5a34921881
rgw/lifecycle: do not send lifecycle rules when GetLifeCycle failed

Now, RGW will send two HTTP responses when GetLifeCycle failed. The first one is
Error Respnse like 404, and the second is lifecycle rules. It will breaks s3 sdk
and s3 utilities.

Fixes: http://tracker.ceph.com/issues/19363
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
(cherry picked from commit c3c0c828da5a64ca896475c1b0c369fde1bbd76a)
src/rgw/rgw_rest_s3.cc