jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Gaul <notificati...@github.com>
Subject Re: [jclouds] metadata and content metadata should have the same length (#751)
Date Tue, 26 May 2015 23:17:55 GMT
> @@ -655,7 +655,9 @@ public Blob getBlob(String containerName, String key, GetOptions options)
{
>              byte[] byteArray = out.toByteArray();
>              blob.setPayload(byteArray);
>              HttpUtils.copy(cmd, blob.getPayload().getContentMetadata());
> -            blob.getPayload().getContentMetadata().setContentLength(Long.valueOf(byteArray.length));
> +            Long size = Long.valueOf(byteArray.length);
> +            blob.getPayload().getContentMetadata().setContentLength(size);
> +            blob.getMetadata().setSize(size);

Should `BaseBlobIntegrationTest.validateMetadata` check `metadata.getSize`?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/751/files#r31089566
Mime
View raw message