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>
if (! is_non_expired()) {
err_msg = "FormPost: Form Expired";
- return -EACCES;
+ return -EPERM;
}
if (! is_integral()) {
err_msg = "FormPost: Invalid Signature";
- return -EACCES;
+ return -EPERM;
}
return 0;