Maksim Hadalau created JCLOUDS-1630:
---------------------------------------

             Summary: 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


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

// blow 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");
}
Solution, if no variables provided - return template as is.

patch to 2.5.x if possible



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

Reply via email to