> + String key = blob.getMetadata().getName();
> + Date creationDate = null;
> + BlobEntity oldBlobEntity = findBlobById(containerName, key);
> + if (oldBlobEntity != null) {
> + creationDate = oldBlobEntity.getCreationDate();
> + deleteBlob(containerName, key);
> + }
> + BlobEntity blobEntity = blobToBlobEntity.apply(blob);
> +
> blobEntity.getPayload().setChunks(storeData(blob.getPayload().openStream()));
> +
> blobEntity.setContainerEntity(containerRepository.findContainerByName(containerName));
> + blobEntity.setKey(key);
> + blobEntity.setBlobAccess(blobAccess);
> + blobEntity.setCreationDate(creationDate);
> +
> +
> + HashCode hash =
> ByteStreams2.hashAndClose(blob.getPayload().openStream(), Hashing.md5());
A test fails if I don't do the integrity check. What's a good place to document
this behavior?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/176/files#r32371719