Azure / Azure/Azurite

Azurite lacks defaultIndexDocumentPath property of staticWebsite in service properties

Open
#816 1 comment 0 reactions 0 assignees View on GitHub
stale
Dominant language
TypeScript
Stars
2.3k
Forks
393
Avg merge
1d 20h
Merged PRs (30d)
36

Description

**Error Description:**
Azurite doesn't have defaultIndexDocumentPath property of staticWebsite. So defaultIndexDocumentPath is still undefined if set a value for it.

**To Reproduce:**
Please run the demo code as following:
```Typescript
import { BlobServiceClient, StorageSharedKeyCredential } from "@azure/storage-blob";
import { assert } from "chai";

async function main() {
const blobServiceClient = new BlobServiceClient("", new StorageSharedKeyCredential("", ""));
await blobServiceClient.setProperties({
staticWebsite: {
enabled: true,
errorDocument404Path: "error/404.html",
defaultIndexDocumentPath: "index.html"
}
}
);
const staticWebsite = (await blobServiceClient.getProperties()).staticWebsite;
assert.equal(staticWebsite.defaultIndexDocumentPath, "index.html");
}

main();
```

**Error Track:**
[https://github.com/Azure/Azurite/blob/master/src/blob/generated/artifacts/mappers.ts#L1376](https://github.com/Azure/Azurite/blob/master/src/blob/generated/artifacts/mappers.ts#L1376)
![image](https://user-images.githubusercontent.com/20970631/121118993-6b1c8400-c84d-11eb-8194-aab23bad4d27.png)
It can be seen from this picture that Azurite lacks `defaultIndexDocumentPath` property of `staticWebsite`.

**Expected Behavior:**
Add the `defaultIndexDocumentPath` property into `staticWebsite` in Azurite.

@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.