Ramesh Gojji created JCLOUDS-1064:
-------------------------------------
Summary: multipart upload throwing : NullPointerException: Null
partETag
Key: JCLOUDS-1064
URL: https://issues.apache.org/jira/browse/JCLOUDS-1064
Project: jclouds
Issue Type: Bug
Components: jclouds-blobstore
Affects Versions: 2.0.0
Environment: openstack-swift, using jclouds 2.0
Reporter: Ramesh Gojji
I am trying to upload a file in chunks to the openstack-swift. Here is the
snippet of the code I am using to upload a file named dom4j-1.6.1.jar in
chunks.
blobStore.putBlob("jclouds-example", blob) does work, but if I add multipart to
the method, then I get NullPointerException: Null partETag.
ByteSource payload = Files.asByteSource(tempFile);
Blob blob = blobStore.blobBuilder(objectName)
.payload(payload)
.contentDisposition("attachment; filename=dom4j-1.6.1.jar")
.contentMD5(payload.hash(Hashing.md5()))
.contentLength(payload.size())
.contentType(MediaType.OCTET_STREAM.toString())
.build();
System.out.println(blob.getMetadata().getName());
// Upload the Blob
String eTag = blobStore.putBlob("jclouds-example", blob,
multipart());
Please help.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)