]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: handle Swift auth errors in a way compatible with new Tempests. 10021/head
authorRadoslaw Zarzynski <rzarzynski@mirantis.com>
Wed, 29 Jun 2016 15:01:57 +0000 (17:01 +0200)
committerRadoslaw Zarzynski <rzarzynski@mirantis.com>
Tue, 5 Jul 2016 15:51:17 +0000 (17:51 +0200)
commit0c03dcb259ade57a126e974ec8c36434a5936fc6
treef1d224502819f9a9a3f10910b9474d0e3937085b
parent8cedd917441e96ef6af9838ebd770d287fb5bfb2
rgw: handle Swift auth errors in a way compatible with new Tempests.

We have to differentiate the error codes depending on whether user is
anonymous (401 Unauthorized) or he doesn't have necessary permissions
(403 Forbidden). The reason behind that is the change in Tempest. See
commit ID: 6b1cd29b763dbc556137c89c5fed54c624da7f69.

Fixes: http://tracker.ceph.com/issues/16590
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
src/rgw/rgw_auth_decoimpl.h
src/rgw/rgw_http_errors.h
src/rgw/rgw_op.cc
src/rgw/rgw_rest_swift.cc
src/rgw/rgw_rest_swift.h