Azure / Azure/Azurite

Azurite doesn't check if continuationToken is valid when use List Queues operation on queue service

Open
#661 3 comments 0 reactions 1 assignee Claimed by @Poku8 View on GitHub
alignment NewArch queue-storage stale
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 "OutOfRangeInput" when use List Queues operation with invalid continuationToken on queue service.
But in Azurite, it will list queues successfully in this case.
Azure error is shown as following:
![Screenshot 2020-12-15 144001](https://user-images.githubusercontent.com/20970631/102180367-b596f680-3ee3-11eb-802d-943753e55000.png)

**To Reproduce**
The demo code is shown as following:
```
import { StorageSharedKeyCredential, QueueServiceClient } from "@azure/storage-queue"
import * as assert from "assert"

async function main(){
const queueServiceClient = new QueueServiceClient("",new StorageSharedKeyCredential("",""))
const result = (await queueServiceClient.listQueues().byPage({ continuationToken: "garbage" }).next()).value;
}

main().catch((err)=>{
assert.ok((err as any).response.parsedBody.Code === "OutOfRangeInput");
});
```

**Expected Behavior**
When use List Queues operation with invalid continuationToken on queue service, Azurite return error "OutOfRangeInput".

@jongio for notification.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.