ldpp_dout(dpp, 5) << "Failed the auth strategy, reason="
<< result.get_reason() << dendl;
// Special handling for expired pre-signed URL
- if (result.get_reason() == ERR_PRESIGNED_URL_EXPIRED) {
+ if (result.get_reason() == -ERR_PRESIGNED_URL_EXPIRED) {
result = result_t::deny(-EPERM);
set_req_state_err(s, -EPERM, "The pre-signed URL has expired");
}
// Special handling for disabled presigned URL
- if (result.get_reason() == ERR_PRESIGNED_URL_DISABLED) {
+ if (result.get_reason() == -ERR_PRESIGNED_URL_DISABLED) {
result = result_t::deny(-EPERM);
set_req_state_err(s, -EPERM, "Presigned URLs are disabled by admin");
}