You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jclouds.apache.org by Archana C <ca...@yahoo.co.uk> on 2017/03/28 07:59:16 UTC

Swift Multipart Manifest Upload

Content length of the manifest file for multipart upload in swift doesnot have size of entire blob instead it has the content length of the manifest file.As per the javadoc [1] Content-Length of the manifest must be size of the blob.
As per my observation content length of the manifest has is not content length of the blob.
Also in the comments mentioned in below reference, Its clear that content length will be set to the object size once the PUT operation is complete.
Can you point us to the code snippet, where computation of content length happens once PUT is completed ?

[1] https://github.com/jclouds/jclouds/blob/master/apis/openstack-swift/src/main/java/org/jclouds/openstack/swift/v1/binders/BindManifestToJsonPayload.java

RegardsArchana

Re: Swift Multipart Manifest Upload

Posted by Andrew Gaul <ga...@apache.org>.
Mat Mannion reported and fixed a related issue; does this address your
question?

https://github.com/jclouds/jclouds/pull/1083
https://issues.apache.org/jira/browse/JCLOUDS-1264

On Tue, Mar 28, 2017 at 07:59:16AM +0000, Archana C wrote:
> 
> Content length of the manifest file for multipart upload in swift doesnot have size of entire blob instead it has the content length of the manifest file.As per the javadoc [1] Content-Length of the manifest must be size of the blob.
> As per my observation content length of the manifest has is not content length of the blob.
> Also in the comments mentioned in below reference, Its clear that content length will be set to the object size once the PUT operation is complete.
> Can you point us to the code snippet, where computation of content length happens once PUT is completed ?
> 
> [1] https://github.com/jclouds/jclouds/blob/master/apis/openstack-swift/src/main/java/org/jclouds/openstack/swift/v1/binders/BindManifestToJsonPayload.java
> 
> RegardsArchana

-- 
Andrew Gaul
http://gaul.org/