Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-1630

UriTemplates.expand() silently cut storage prefix (blob key) if { (open curve bracket) ocured

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.5.0
    • None
    • None

    Description

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

       

      // 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"); }
       
      

      Solution, if no variables provided - return template as is.

      patch to 2.5.x if possible

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            hmaksim Maksim Hadalau
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m