the changes in
bd81c216d0ef36a66c27180f13430c9702393fb6 inadvertently
changed swift's default auth error from EPERM to ACCESS. hacky fix to
change it back
Signed-off-by: Casey Bodley <cbodley@redhat.com>
int RGWHandler_REST_SWIFT::authorize()
{
- return rgw::auth::Strategy::apply(auth_strategy, s);
+ int r = rgw::auth::Strategy::apply(auth_strategy, s);
+ if (r == -EACCES) { // XXX: hacky fix for Strategy::apply() refactoring
+ r = -EPERM;
+ }
+ return r;
}
int RGWHandler_REST_SWIFT::postauth_init()