Shri Javadekar created JCLOUDS-648:
--------------------------------------

             Summary: putBlob operation does not throw a 
ContainerNotFoundException against Swift based blobstores
                 Key: JCLOUDS-648
                 URL: https://issues.apache.org/jira/browse/JCLOUDS-648
             Project: jclouds
          Issue Type: Bug
          Components: jclouds-blobstore
    Affects Versions: 1.7.3
            Reporter: Shri Javadekar
             Fix For: 2.0.0


As per the documentation[1], the putBlob method of the BlobStore object should 
return throw a ContainerNotFoundException if the container does not exist. This 
behaves correctly against AWS. However, against Swift and Swift based 
blobstores such CloudFiles-US, I don't see a ContainerNotFoundException being 
thrown. Instead, I see the following HttpResponseException being thrown.

org.jclouds.http.HttpResponseException: Server rejected operation connecting to 
PUT 
https://storage101.dfw1.clouddrive.com/v1/MossoCloudFS_39bd836e-89b7-43d5-9b88-ddd3b0e68353/cloud-testning-5/31bbdae7404d5fb6
 HTTP/1.1
    at 
org.jclouds.http.internal.BaseHttpCommandExecutorService.invoke(BaseHttpCommandExecutorService.java:162)
    at 
org.jclouds.rest.internal.InvokeSyncToAsyncHttpMethod.invoke(InvokeSyncToAsyncHttpMethod.java:129)
    at 
org.jclouds.rest.internal.InvokeSyncToAsyncHttpMethod.apply(InvokeSyncToAsyncHttpMethod.java:95)
    at 
org.jclouds.rest.internal.InvokeSyncToAsyncHttpMethod.apply(InvokeSyncToAsyncHttpMethod.java:56)
    at 
org.jclouds.rest.internal.DelegatesToInvocationFunction.handle(DelegatesToInvocationFunction.java:156)
    at 
org.jclouds.rest.internal.DelegatesToInvocationFunction.invoke(DelegatesToInvocationFunction.java:123)
    at com.sun.proxy.$Proxy72.putObject(Unknown Source)
    at 
org.jclouds.openstack.swift.blobstore.SwiftBlobStore.putBlob(SwiftBlobStore.java:204)

[1] 
http://jclouds.apache.org/reference/javadoc/1.7.x/org/jclouds/blobstore/BlobStore.html#putBlob(java.lang.String,
 org.jclouds.blobstore.domain.Blob)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to