Skip to content

armgit / floci

Public Imported from GitHub
0

Light, fluffy, and always free - The AWS Local Emulator alternative

fix(s3): remove shadowed hasQueryParam that misrouted presigned PUT with x-amz-tagging header (#1023)

Hector Venturaa33ce857bb14
diff --git a/src/main/java/io/github/hectorvent/floci/services/s3/S3Controller.java b/src/main/java/io/github/hectorvent/floci/services/s3/S3Controller.java
index 0adec0de25..294279a7e5 100644
--- a/src/main/java/io/github/hectorvent/floci/services/s3/S3Controller.java
+++ b/src/main/java/io/github/hectorvent/floci/services/s3/S3Controller.java
@@ -2275,13 +2275,6 @@ public class S3Controller {
}
}
- private boolean hasQueryParam(UriInfo uriInfo, String param) {
- if (uriInfo.getQueryParameters().containsKey(param)) return true;
- String query = uriInfo.getRequestUri().getQuery();
- if (query == null) return false;
- return query.equals(param) || query.contains(param + "&") || query.contains("&" + param);
- }
-
private static final int MAX_INLINE_TAGS = 10;
private static final int MAX_INLINE_TAGGING_HEADER_BYTES = 8 * 1024;