Azurite icon indicating copy to clipboard operation
Azurite copied to clipboard

don't default the delimiter for list blob hierarchy to slash

Open roelarents opened this issue 3 years ago • 2 comments

Regarding the list-blobs endpoint. Azure handles an empty delimiter query parameter as such (as if it was not given). But Azurite defaults it to a / (slash). This behaviour was added by @XiaoningLiu, but I cannot determine the exact reason.

It causes incompatibility issues. E.g. in the Azure Storage Explorer; the returned flat list of blobs is empty when there are in fact blobs in the container. And also in minio, which uses the azure storage go library which always sets the delimiter query parameter.

This PR removes the defaulting behaviour.

roelarents avatar Sep 26 '22 15:09 roelarents

/azp run

blueww avatar Sep 30 '22 06:09 blueww

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Sep 30 '22 06:09 azure-pipelines[bot]

I could. But Azure SDK for JS, used as client in the existing tests, does not send an empty delimiter. I'd have to write a test at lower level (http). Don't know if you want that.

roelarents avatar Oct 24 '22 12:10 roelarents

/azp run

XiaoningLiu avatar Nov 24 '22 09:11 XiaoningLiu

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Nov 24 '22 09:11 azure-pipelines[bot]