]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix error code of inexistence of versions location in swift api 13350/head
authorJing Wenjun <jingwenjun@cmss.chinamobile.com>
Fri, 10 Feb 2017 09:21:41 +0000 (17:21 +0800)
committerJing Wenjun <jingwenjun@cmss.chinamobile.com>
Wed, 15 Feb 2017 06:55:05 +0000 (14:55 +0800)
commite94e267c4d9fd3cc2bf34a0ab6a3f20795a15d3b
tree7197f3d349387d2bdda14e952503007fe8cf291a
parent00417f0ecb686d706177b874ff4f86085952098e
rgw: fix error code of inexistence of versions location in swift api

when the versions location of container does not exist and uploading the same
object two more times to the container, it will return 412 rather than 404
in openstack swift. Meanwhile, if the dest bucket owner is not consistent with
src bucket owner, it will return 412.

http://tracker.ceph.com/issues/18880
Signed-off-by: Jing Wenjun <jingwenjun@cmss.chinamobile.com>
src/rgw/rgw_rados.cc