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

Swift API does not return false on containerExists

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • jclouds-blobstore

    Description

      I am using 1.8 Snapshot due to guava 16.0.1 requirement and the SwiftClient api from org.apache.jclouds.api.swift.

      the containerExists call throws an exception rather than returning false:

      Caused by: org.jclouds.http.HttpResponseException: request: HEAD https://10.102.4.11/swift/v1/docstore-19af332c-823b-4e9b-a92a-3f1381e856b8 HTTP/1.1 failed with response: HTTP/1.1 404 null
      at org.jclouds.openstack.swift.handlers.ParseSwiftErrorFromHttpResponse.handleError(ParseSwiftErrorFromHttpResponse.java:55) ~[swift-1.8.0-SNAPSHOT.jar:1.8.0-SNAPSHOT]
      at org.jclouds.http.handlers.DelegatingErrorHandler.handleError(DelegatingErrorHandler.java:67) ~[jclouds-core-1.8.0-SNAPSHOT.jar:1.8.0-SNAPSHOT]
      at org.jclouds.http.internal.BaseHttpCommandExecutorService.shouldContinue(BaseHttpCommandExecutorService.java:180) ~[jclouds-core-1.8.0-SNAPSHOT.jar:1.8.0-SNAPSHOT]
      at org.jclouds.http.internal.BaseHttpCommandExecutorService.invoke(BaseHttpCommandExecutorService.java:150) ~[jclouds-core-1.8.0-SNAPSHOT.jar:1.8.0-SNAPSHOT]
      at org.jclouds.rest.internal.InvokeSyncToAsyncHttpMethod.invoke(InvokeSyncToAsyncHttpMethod.java:129) ~[jclouds-core-1.8.0-SNAPSHOT.jar:1.8.0-SNAPSHOT]
      at org.jclouds.rest.internal.InvokeSyncToAsyncHttpMethod.apply(InvokeSyncToAsyncHttpMethod.java:95) ~[jclouds-core-1.8.0-SNAPSHOT.jar:1.8.0-SNAPSHOT]
      at org.jclouds.rest.internal.InvokeSyncToAsyncHttpMethod.apply(InvokeSyncToAsyncHttpMethod.java:56) ~[jclouds-core-1.8.0-SNAPSHOT.jar:1.8.0-SNAPSHOT]
      at org.jclouds.rest.internal.DelegatesToInvocationFunction.handle(DelegatesToInvocationFunction.java:156) ~[jclouds-core-1.8.0-SNAPSHOT.jar:1.8.0-SNAPSHOT]
      at org.jclouds.rest.internal.DelegatesToInvocationFunction.invoke(DelegatesToInvocationFunction.java:123) ~[jclouds-core-1.8.0-SNAPSHOT.jar:1.8.0-SNAPSHOT]
      at com.sun.proxy.$Proxy160.containerExists(Unknown Source) ~[na:na]

      Attachments

        Activity

          People

            Unassigned Unassigned
            fabianlange Fabian Lange
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: