Azure / azure-storage-php

Microsoft Azure Storage Library for PHP
MIT License
217 stars 198 forks source link

Format of sourceURL is not correct while copying blob #348

Open ShawnRongCIT opened 1 year ago

ShawnRongCIT commented 1 year ago

Which service(blob, file, queue, table) does this issue concern?

Blob

Which version of the SDK was used?

Version: 1.5.4

What's the PHP/OS version?

PHP 8.1

What problem was encountered?

I'm using flysystem azure adapters for blob copying. When I'm trying to move/copy a blob to another folder, it will be failed. Showing 403 response code.

Steps to reproduce the issue?

Have you found a mitigation/solution?

Append Blob SAS signature to the source URL will solve the issue. https://github.com/Azure/azure-storage-php/blob/5ff7d09bb4de0b30d3b87e45e542da0ad835674d/azure-storage-blob/src/Blob/BlobRestProxy.php#L4186

I'm wondering if there's any update on Azure Blob configuration to cause the issue. Did anyone facing the same problem before?