flysystem icon indicating copy to clipboard operation
flysystem copied to clipboard

Unable to download Azure files due to visibility error

Open andrei-dascalu opened this issue 1 year ago • 0 comments

Question

After updating both flysystem and the azure storage adapter, I find myself unable to copy existing files from Azure to a local system. The error I receive is Unable to retrieve the visibility for file at location: files/directory/<blah>. Azure does not support visibility. Ok, this makes sense but shouldn't there be a way to ignore visibility errors and still attempt to download/copy the file? I know the file exists, it's been uploaded via flysystem but apparently can't be downloaded.

I'm setting up the adapter as such:

                $adapter = new AzureBlobStorageAdapter(
                    $client,
                    $containerName,
                    '',
                    null,
                    6000,
                    AzureBlobStorageAdapter::ON_VISIBILITY_IGNORE,
                    null
                );

where client is a BlobRestProxy. I specify AzureBlobStorageAdapter::ON_VISIBILITY_IGNORE thinking that this means visibility issues will be ignored as opposed to ON_VISIBILITY_THROW_ERROR but when I try to copy a file from Azure between 2 filesystems, I still get the error.

Is there something I could do? Any pointers are greatly appreciated. Thanks!

Q A
Flysystem Version 3.14.0
Adapter Name league/flysystem-azure-blob-storage
Adapter version 3.13.0

andrei-dascalu avatar Apr 27 '23 21:04 andrei-dascalu