From 96d82c681add06a50d7612227738b31c88e709dc 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 5fcd7338..0f279d87 100644 --- a/src/main/java/org/gaul/s3proxy/S3ProxyHandler.java +++ b/src/main/java/org/gaul/s3proxy/S3ProxyHandler.java @@ -446,9 +446,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);