Error Description:
In Azure, it will return error "InvalidHeaderValue" when use Update Sequence Number operation with invalid sequenceNumber.
But in Azurite, it will update sequence number successfully in this case.
Azure error is shown as following:
To Reproduce
The demo code is shown as following:
import {
BlobServiceClient
} from "@azure/storage-blob";
import * as assert from "assert"
async function main(){
const blobServiceClient = await BlobServiceClient.fromConnectionString("<Azurite-https-connnectionString>");
const containerClient=await blobServiceClient.getContainerClient("<container-name>");
const pageBlobClient = containerClient.getPageBlobClient("<blob-name>");
try{
await pageBlobClient.updateSequenceNumber('update',1);
}catch(err){
console.log(err);
assert.ok((err as any).response.parsedBody.Code === "InvalidHeaderValue");
}
}
main();
Expected Behavior
When use Update Sequence Number operation with invalid sequenceNumber, Azurite return error "InvalidHeaderValue".
Error Description: In Azure, it will return error "InvalidHeaderValue" when use Update Sequence Number operation with invalid sequenceNumber. But in Azurite, it will update sequence number successfully in this case. Azure error is shown as following:
To Reproduce The demo code is shown as following:
Expected Behavior When use Update Sequence Number operation with invalid sequenceNumber, Azurite return error "InvalidHeaderValue".
@jongio for notification.