From 0eab2b1618b2e3155aefc6c36be6d2918922e04b Mon Sep 17 00:00:00 2001 From: Timur Saikaliev Date: Wed, 12 Jun 2024 23:21:31 +0300 Subject: [PATCH] remove timestamp validation for requests that use query string authentication --- src/main/java/org/gaul/s3proxy/S3ProxyHandler.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/java/org/gaul/s3proxy/S3ProxyHandler.java b/src/main/java/org/gaul/s3proxy/S3ProxyHandler.java index a88e4d54..572a1aae 100644 --- a/src/main/java/org/gaul/s3proxy/S3ProxyHandler.java +++ b/src/main/java/org/gaul/s3proxy/S3ProxyHandler.java @@ -447,9 +447,6 @@ public final void doHandle(HttpServletRequest baseRequest, dateSkew = parseIso8601(request.getHeader( AwsHttpHeaders.DATE)); } - } else if (request.getParameter("X-Amz-Date") != null) { // v4 query - String dateString = request.getParameter("X-Amz-Date"); - dateSkew = parseIso8601(dateString); } else if (hasDateHeader) { try { dateSkew = request.getDateHeader(HttpHeaders.DATE);