The error returned in Azurite is inconsistent with the one in Azure when use queue service SAS to create queue
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 393
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 36
Description
**Error Description:**
The error returned in Azurite is inconsistent with the one in Azure when use queue service SAS to create queue.
In Azure, the error is shown as following:

In Azurite, the error is shown as following:

**To Reproduce**
The demo code is shown as following:
```
import { QueueServiceClient } from "@azure/storage-queue"
import * as assert from "assert"
async function main() {
try {
var queueServiceClient = new QueueServiceClient("https://jacksonstorage1211.queue.core.windows.net/?sv=2020-04-08&st=2020-12-15T06:40:44Z&se=2020-12-15T08:40:44Z&sp=raup&sig=NQHenjCUuSLq%2FnOpCAsV3vQxQSnuLYuO%2FuggG1ddiis%3D");
var queue = queueServiceClient.getQueueClient("");
await queue.create();
} catch (err) {
assert.ok((err as any).response.parsedBody.Code === "AuthorizationFailure");
}
try {
queueServiceClient = new QueueServiceClient("https://127.0.0.1:10001/devstoreaccount1/?sv=2020-04-08&st=2020-12-15T06%3A20%3A34Z&se=2020-12-15T08%3A20%3A34Z&sp=raup&sig=4RU5eN6Dhy%2B8MAcK29rt6gsue%2FW1iOl0dqfyKfR8p6s%3D")
queue = queueServiceClient.getQueueClient("");
await queue.create();
} catch (err) {
assert.ok((err as any).response.parsedBody.Code === "AuthorizationPermissionMismatch");
}
}
main();
```
**Error Track:**
The process code for use queue service SAS to create queue in Azurite is shown as following:
[https://github.com/Azure/Azurite/blob/master/src/queue/authentication/QueueSASAuthenticator.ts#L276](https://github.com/Azure/Azurite/blob/master/src/queue/authentication/QueueSASAuthenticator.ts#L276)

Expected Behavior
The error returned in Azurite is consistent with the one in Azure when use queue service SAS to create queue.
@jongio for notification.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.