From f770455ff9f53a9413353cc0d4d534a3e1f6fb83 Mon Sep 17 00:00:00 2001 From: Jesse Glick Date: Mon, 9 Jul 2018 23:45:52 -0400 Subject: [PATCH] [JCLOUDS-1401] Properly URL-encode the CanonicalQueryString when it contains funny characters. --- .../s3/src/main/java/org/jclouds/s3/filters/Aws4SignerBase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apis/s3/src/main/java/org/jclouds/s3/filters/Aws4SignerBase.java b/apis/s3/src/main/java/org/jclouds/s3/filters/Aws4SignerBase.java index 5aa88da8a3..66d5231edc 100644 --- a/apis/s3/src/main/java/org/jclouds/s3/filters/Aws4SignerBase.java +++ b/apis/s3/src/main/java/org/jclouds/s3/filters/Aws4SignerBase.java @@ -398,7 +398,7 @@ public abstract class Aws4SignerBase { // CanonicalQueryString + '\n' + if (endpoint.getQuery() != null) { - canonicalRequest.append(getCanonicalizedQueryString(endpoint.getQuery())); + canonicalRequest.append(getCanonicalizedQueryString(endpoint.getRawQuery())); } canonicalRequest.append("\n");