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

Maksim Hadalau updated JCLOUDS-1630:
------------------------------------
    Description: 
Steps to reproduce:
Try to create a blob with opened curve in a storage key

 
{code:java}
// below test fails because actual result is: "/repos/folder with "
public void testIncorrectExpand() {
assertEquals(expand("/repos/folder with { brackets in a key", 
ImmutableMap.of()),
"/repos/folder with { brackets in a key"); }
 
{code}
Solution, if no variables provided - return template as is.

patch to 2.5.x if possible

PR https://github.com/apache/jclouds/pull/199

  was:
Steps to reproduce:
Try to create a blob with opened curve in a storage key

 
{code:java}
// below test fails because actual result is: "/repos/folder with "
public void testIncorrectExpand() {
assertEquals(expand("/repos/folder with { brackets in a key", 
ImmutableMap.of()),
"/repos/folder with { brackets in a key"); }
 
{code}
Solution, if no variables provided - return template as is.

patch to 2.5.x if possible


> UriTemplates.expand() silently cut storage prefix (blob key) if { (open curve 
> bracket) ocured
> ---------------------------------------------------------------------------------------------
>
>                 Key: JCLOUDS-1630
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-1630
>             Project: jclouds
>          Issue Type: Bug
>          Components: jclouds-blobstore, jclouds-core
>    Affects Versions: 2.5.0
>            Reporter: Maksim Hadalau
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Steps to reproduce:
> Try to create a blob with opened curve in a storage key
>  
> {code:java}
> // below test fails because actual result is: "/repos/folder with "
> public void testIncorrectExpand() {
> assertEquals(expand("/repos/folder with { brackets in a key", 
> ImmutableMap.of()),
> "/repos/folder with { brackets in a key"); }
>  
> {code}
> Solution, if no variables provided - return template as is.
> patch to 2.5.x if possible
> PR https://github.com/apache/jclouds/pull/199



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

Reply via email to