In the dev-bookmark branch, the following unit tests fail:
- com.microsoft.windowsazure.services.blob.BlobServiceIntegrationTest
- getBlobwithIfNoneMatchETagAccessconditionWorks
- getBlobWithIfModifiedSinceAccessconditionWorks
This issue was introduced with 802e9b0 , where PipelineHelpers.ThrowIfError changed what it considered to be an error from >=300 to >=400. This change is correct, but the getBlob code should consider >=300 as an error, because the server returns a 304 if it cannot give a match for the If-* headers.
A potential fix is to change the BlobRestProxy code to replace
with something like:
// 304 is returned if the blob requested does not match the If-None-Match, etc. headers.
if (response.getStatus() >= 300) {
throw new UniformInterfaceException(response);
}
In the dev-bookmark branch, the following unit tests fail:
This issue was introduced with 802e9b0 , where PipelineHelpers.ThrowIfError changed what it considered to be an error from >=300 to >=400. This change is correct, but the getBlob code should consider >=300 as an error, because the server returns a 304 if it cannot give a match for the If-* headers.
A potential fix is to change the BlobRestProxy code to replace
with something like: