1
mirror of https://github.com/rclone/rclone synced 2025-01-08 10:26:23 +01:00
rclone/backend/azureblob
Nick Craig-Wood f7404f52e7 azureblob: fix crash when listing outside a SAS URL's root - fixes #4851
Before this change if you attempted to list a remote set up with a SAS
URL outside its container then it would crash the Azure SDK.

A check is done to make sure the root is inside the container when
starting the backend which is usually enough, but when two SAS URL
based remotes are mounted in a union, the union backend attempts to
read paths outside the named container. This was causing a mysterious
crash in the Azure SDK.

This fixes the problem by checking to see if the container in the
listing is the one in the SAS URL before listing the directory and
returning directory not found if it isn't.
2020-12-27 15:55:00 +00:00
..
azureblob_internal_test.go build: make rclone build with wasm 2020-08-10 17:32:21 +01:00
azureblob_test.go azure: add support for service principals - fixes #3230 2020-12-09 17:52:15 +00:00
azureblob_unsupported.go build: make rclone build with wasm 2020-08-10 17:32:21 +01:00
azureblob.go azureblob: fix crash when listing outside a SAS URL's root - fixes #4851 2020-12-27 15:55:00 +00:00