[JCLOUDS-1401] Properly URL-encode the CanonicalQueryString when it contains 
funny characters.


Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/f770455f
Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/f770455f
Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/f770455f

Branch: refs/heads/master
Commit: f770455ff9f53a9413353cc0d4d534a3e1f6fb83
Parents: c34935d
Author: Jesse Glick <jgl...@cloudbees.com>
Authored: Mon Jul 9 23:45:52 2018 -0400
Committer: Ignasi Barrera <n...@apache.org>
Committed: Wed Jul 11 09:35:34 2018 -0700

----------------------------------------------------------------------
 apis/s3/src/main/java/org/jclouds/s3/filters/Aws4SignerBase.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jclouds/blob/f770455f/apis/s3/src/main/java/org/jclouds/s3/filters/Aws4SignerBase.java
----------------------------------------------------------------------
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 5aa88da..66d5231 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");
 

Reply via email to