Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Commit 07a4ed7

Browse files
committed
JCLOUDS-1640: Use raw query to sign S3 V2 request
This prevents errors when listing objects with % in the key names. Found via S3Proxy AwsSdkTest.testSpecialCharacters.
1 parent 176d3d4 commit 07a4ed7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apis/s3/src/main/java/org/jclouds/s3/filters/RequestAuthorizeSignatureV2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ void appendUriPath(HttpRequest request, StringBuilder toSign) {
253253
// ...however, there are a few exceptions that must be included in the
254254
// signed URI.
255255
if (request.getEndpoint().getQuery() != null) {
256-
Multimap<String, String> params = queryParser().apply(request.getEndpoint().getQuery());
256+
Multimap<String, String> params = queryParser().apply(request.getEndpoint().getRawQuery());
257257
char separator = '?';
258258
for (String paramName : Ordering.natural().sortedCopy(params.keySet())) {
259259
// Skip any parameters that aren't part of the canonical signed string

0 commit comments

Comments
 (0)