Skip to content

Commit

Permalink
Merge pull request #15850 from rzarzynski/wip-rgw-20384
Browse files Browse the repository at this point in the history
rgw: fix wrong error code for expired Swift TempURL's links.

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
  • Loading branch information
yuriw committed Jun 28, 2017
2 parents c76f703 + 53e4b02 commit bdf7fa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rgw/rgw_swift_auth.cc
Expand Up @@ -219,7 +219,7 @@ TempURLEngine::authenticate(const req_state* const s) const

if (is_expired(temp_url_expires)) {
ldout(cct, 5) << "temp url link expired" << dendl;
return result_t::reject();
return result_t::reject(-EPERM);
}

/* We need to verify two paths because of compliance with Swift, Tempest
Expand Down

0 comments on commit bdf7fa8

Please sign in to comment.