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

cannot list swift container with object name containing %

    Details

      Description

      Probably should add a generic test for this as well:

      Exception in thread "main" java.lang.IllegalArgumentException: URLDecoder: Incomplete trailing escape (%) pattern
              at java.net.URLDecoder.decode(URLDecoder.java:187)
              at org.jclouds.util.Strings2.urlDecode(Strings2.java:131)
              at org.jclouds.http.Uris$UriBuilder.path(Uris.java:143)
              at org.jclouds.http.Uris$UriBuilder.appendPath(Uris.java:151)
              at org.jclouds.openstack.swift.v1.functions.ParseObjectListFromResponse$ToSwiftObject.apply(ParseObjectListFromResponse.java:100)
              at org.jclouds.openstack.swift.v1.functions.ParseObjectListFromResponse$ToSwiftObject.apply(ParseObjectListFromResponse.java:78)
              at com.google.common.collect.Lists$TransformingRandomAccessList$1.transform(Lists.java:582)
              at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)
              at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)
              at java.util.AbstractCollection.addAll(AbstractCollection.java:343)
              at com.google.common.collect.Iterables.addAll(Iterables.java:348)
              at org.jclouds.blobstore.domain.internal.PageSetImpl.<init>(PageSetImpl.java:31)
              at org.jclouds.openstack.swift.v1.blobstore.RegionScopedSwiftBlobStore.list(RegionScopedSwiftBlobStore.java:255)
              at org.jclouds.blobstore.strategy.internal.DeleteAllKeysInList.getListing(DeleteAllKeysInList.java:146)
              at org.jclouds.blobstore.strategy.internal.DeleteAllKeysInList.executeOneIteration(DeleteAllKeysInList.java:337)
              at org.jclouds.blobstore.strategy.internal.DeleteAllKeysInList.execute(DeleteAllKeysInList.java:416)
              at org.jclouds.openstack.swift.v1.blobstore.RegionScopedSwiftBlobStore.clearContainer(RegionScopedSwiftBlobStore.java:578)
              at org.jclouds.openstack.swift.v1.blobstore.RegionScopedSwiftBlobStore.deleteContainer(RegionScopedSwiftBlobStore.java:583)
      

        Activity

        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit acb84bc5e13a71b7751bf5d7d9a1dfab1ad7d9f5 in jclouds's branch refs/heads/2.0.x from Andrew Gaul
        [ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=acb84bc ]

        JCLOUDS-1299: Handle % in names during Swift list

        uriBuilder.appendPath assumes an encoded path.

        Show
        jira-bot ASF subversion and git services added a comment - Commit acb84bc5e13a71b7751bf5d7d9a1dfab1ad7d9f5 in jclouds's branch refs/heads/2.0.x from Andrew Gaul [ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=acb84bc ] JCLOUDS-1299 : Handle % in names during Swift list uriBuilder.appendPath assumes an encoded path.
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 2b49bf36183981e26ed80ffbcc266929560f431e in jclouds's branch refs/heads/master from Andrew Gaul
        [ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=2b49bf3 ]

        JCLOUDS-1299: Handle % in names during Swift list

        uriBuilder.appendPath assumes an encoded path.

        Show
        jira-bot ASF subversion and git services added a comment - Commit 2b49bf36183981e26ed80ffbcc266929560f431e in jclouds's branch refs/heads/master from Andrew Gaul [ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=2b49bf3 ] JCLOUDS-1299 : Handle % in names during Swift list uriBuilder.appendPath assumes an encoded path.

          People

          • Assignee:
            gaul Andrew Gaul
            Reporter:
            gaul Andrew Gaul
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development