You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "Andrew Gaul (Jira)" <ji...@apache.org> on 2024/12/22 22:30:00 UTC

[jira] [Updated] (JCLOUDS-1640) RequestAuthorizeSignatureV2 throws on folder with % in name

     [ https://issues.apache.org/jira/browse/JCLOUDS-1640?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Gaul updated JCLOUDS-1640:
---------------------------------
    Description: 
If I create a "folder" (or blob with a '%' in the folder part of its name).   S3BlobStore.list() will throw IllegalArgumentException( "URLDecoder: Incomplete trailing escape (%) pattern")

 

The problem seems to be with this line of code in RequestAuthorizeSignatureV2.java:
Multimap<String, String> params = queryParser().apply(request.getEndpoint().getQuery());
 
queryParser().apply() expects and encoded query string and will decode the string itself.  I believe getQuery() should be replaced with getRawQuery().

  was:
If I create a "folder" (or blob with a '%' in the folder part of its name).   S3BlobStore.list() will throw IllegalArgumentException( "URLDecoder: Incomplete trailing escape (%) pattern")

 

The problem seems to be with this line of code in RequestAutorizeSignatureV2.java:
Multimap<String, String> params = queryParser().apply(request.getEndpoint().getQuery());
 
queryParser().apply() expects and encoded query string and will decode the string itself.  I believe getQuery() should be replaced with getRawQuery().


> RequestAuthorizeSignatureV2 throws on folder with % in name
> -----------------------------------------------------------
>
>                 Key: JCLOUDS-1640
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-1640
>             Project: jclouds
>          Issue Type: Bug
>          Components: jclouds-blobstore
>    Affects Versions: 2.6.0
>            Reporter: Matthew Bellew
>            Assignee: Andrew Gaul
>            Priority: Major
>              Labels: s3
>
> If I create a "folder" (or blob with a '%' in the folder part of its name).   S3BlobStore.list() will throw IllegalArgumentException( "URLDecoder: Incomplete trailing escape (%) pattern")
>  
> The problem seems to be with this line of code in RequestAuthorizeSignatureV2.java:
> Multimap<String, String> params = queryParser().apply(request.getEndpoint().getQuery());
>  
> queryParser().apply() expects and encoded query string and will decode the string itself.  I believe getQuery() should be replaced with getRawQuery().



--
This message was sent by Atlassian Jira
(v8.20.10#820010)