]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: FormPost returns 401 Unauthorized instead of 403 Forbidden.
authorRadoslaw Zarzynski <rzarzynski@mirantis.com>
Fri, 2 Dec 2016 17:43:43 +0000 (18:43 +0100)
committerRadoslaw Zarzynski <rzarzynski@mirantis.com>
Mon, 24 Apr 2017 15:32:16 +0000 (17:32 +0200)
commite338e157c39965d890dcbfc23d258b28b15536fb
tree97a9a6e0849fca8f8a683f66d56f5344add5e798
parent791edf10677b534e9065b85d6a9fd1fc10d4e66f
rgw: FormPost returns 401 Unauthorized instead of 403 Forbidden.

This patch emerged because newer versions of Tempest became
more restrictive in the matter of FormPost's error handling.
Previously, Tempest was accepting both 403 Forbidden as well
as 401 Unauthorized as a response for signature mismatch or
expired form. Actually only the second one is acceptable for
tempest.api.object_storage.test_object_formpost_negative.*

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
src/rgw/rgw_rest_swift.cc