kopia lustrzana https://github.com/gaul/s3proxy
Fail V4 signature requests with InvalidArgument
This allows V4 clients like s3cmd to retry with V2 signatures. References #24.pull/31/head
rodzic
0eac109276
commit
ff551248a1
|
@ -207,6 +207,12 @@ final class S3ProxyHandler extends AbstractHandler {
|
|||
}
|
||||
headerIdentity = values[0];
|
||||
headerSignature = values[1];
|
||||
} else if (headerAuthorization != null &&
|
||||
headerAuthorization.startsWith("AWS4-HMAC-SHA256 ")) {
|
||||
// Fail V4 signature requests to allow clients to retry with V2.
|
||||
sendSimpleErrorResponse(response, S3ErrorCode.INVALID_ARGUMENT);
|
||||
baseRequest.setHandled(true);
|
||||
return;
|
||||
}
|
||||
String parameterIdentity = request.getParameter("AWSAccessKeyId");
|
||||
String parameterSignature = request.getParameter("Signature");
|
||||
|
|
Ładowanie…
Reference in New Issue