]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/lifecycle: do not send lifecycle rules when GetLifeCycle failed 14160/head
authorliuchang0812 <liuchang0812@gmail.com>
Mon, 27 Mar 2017 05:08:12 +0000 (13:08 +0800)
committerliuchang0812 <liuchang0812@gmail.com>
Mon, 27 Mar 2017 05:08:12 +0000 (13:08 +0800)
commitc3c0c828da5a64ca896475c1b0c369fde1bbd76a
treea72c11eb72bff226a833454d5c72ed8734ebd6c6
parente32b1b8793c4dcb22907cb86152c48360ac7a0ff
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>
src/rgw/rgw_rest_s3.cc