You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RiakCS should reject PUT requests with mismatched Content-MD5 and data. I tested using the S3-compatible API via jclouds and riakcs.net does not reject the request:
@TestpublicvoidtestPutBlobIncorrectMd5() throwsException {
StringblobName = makeBlobName();
byte[] input = TestUtils.makeRandomBuffer(/*size=*/1024);
byte[] contentMd5 = Hashing.md5().hashBytes(input).asBytes();
// Modify the first byte of the MD5contentMd5[0]++;
BlobStoreblobStore = blobStoreContext.getBlobStore();
Blobblob = blobStore.blobBuilder(blobName)
.payload(input)
.contentMD5(contentMd5)
.build();
thrown.expect(HttpResponseException.class);
blobStore.putBlob(containerName, blob);
}
RiakCS should reject PUT requests with mismatched Content-MD5 and data. I tested using the S3-compatible API via jclouds and riakcs.net does not reject the request:
Further reference:
https://twitter.com/reiddraper/status/347801372571340802
The text was updated successfully, but these errors were encountered: