kopia lustrzana https://github.com/gaul/s3proxy
Emit AccessDenied for empty Authorization header
rodzic
8042e9b490
commit
d74a409f87
|
@ -152,6 +152,12 @@ final class S3ProxyHandler extends AbstractHandler {
|
|||
identity, credential);
|
||||
String headerAuthorization = request.getHeader(
|
||||
HttpHeaders.AUTHORIZATION);
|
||||
if (headerAuthorization == null) {
|
||||
sendSimpleErrorResponse(response, S3ErrorCode.ACCESS_DENIED);
|
||||
baseRequest.setHandled(true);
|
||||
return;
|
||||
}
|
||||
|
||||
String queryStringAuthorization = "AWS " +
|
||||
request.getParameter("AWSAccessKeyId") + ":" +
|
||||
request.getParameter("Signature");
|
||||
|
|
Ładowanie…
Reference in New Issue