Azurite doesn't check if the parameter sequenceNumber is valid when use Update Sequence Number operation on page blob.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 393
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 36
Description
**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("");
const containerClient=await blobServiceClient.getContainerClient("");
const pageBlobClient = containerClient.getPageBlobClient("");
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".
@jongio for notification.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.