-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.30.0 - StartCopyFromUriAsync - 500 Error #2392
Comments
I can't repro this problem with above test code and Azurite docker image 3.30.0 on my local test machine. BTW, we do add more source SAS permission checking on blob copy in 3.30.0, with PR #2330 |
I'm facing the same issue too. In my case, I faced this issue with HTTPS setup of Azurite. (creating and installing self-signed certificates using openssl). Below are the debug logs for this: 2024-05-02T06:15:39.144Z 933256cb-d95d-4f81-8611-90d52f90a8cb info: BlobStorageContextMiddleware: RequestMethod=PUT RequestURL=https://127.0.0.1/devstoreaccount1/240c8d06-19a5-42cc-bd9f-fa81bfcb208b/destination.txt?sv=2023-11-03&se=2024-05-03T06%3A15%3A26Z&sr=c&sp=rc&sig={redacted} RequestHeaders:{"host":"127.0.0.1:10000","x-ms-copy-source":"https://127.0.0.1:10000/devstoreaccount1/240c8d06-19a5-42cc-bd9f-fa81bfcb208b/source.txt?sv=2023-11-03&se=2024-05-03T06%3A15%3A26Z&sr=c&sp=r&sig={redacted}","x-ms-version":"2023-11-03","accept":"application/xml","x-ms-client-request-id":"8e9ee6ef-a7d3-434f-a376-1914e962e3af","x-ms-return-client-request-id":"true","user-agent":"azsdk-net-Storage.Blobs/12.19.1 (.NET 6.0.29; Microsoft Windows 10.0.22631)","content-length":"0"} ClientIP=127.0.0.1 Protocol=https HTTPVersion=1.1 |
I can repro this issue with https. The error report from this code in function validateCopySource(): Azurite/src/blob/handlers/BlobHandler.ts Line 735 in 2bb552e
However, this issue not happen before since copy inside same account won't call this function. The reason for this failure happen from 3.30.0 is : recent change from #2330, which makes even copy inside same account will go through validateCopySource() function. Azurite/src/blob/handlers/BlobHandler.ts Line 666 in 2bb552e
@EmmaZhu Would you please help to look? |
Hi @SamarthMayya , I think your issue is because it doesn't have write permission for destination. Your destination SAS token only has
|
Hi @EmmaZhu, |
According to this link, for |
I'm having similar issue, but only in our GitLab pipelines. Here's the stack trace:
When I run the same test locally, all goes well. Downgrade to 3.29.0 solves the problem. |
What's the status of that issue? I cannot use the newest |
@michalchecinski |
We are also seeing this issue, but using the dotnet client. |
@michalchecinski @EmmaZhu Would you please help to look? |
Which service(blob, file, queue, table) does this issue concern?
blob
Which version of the Azurite was used?
3.30.0
Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)
docker
What's the Node.js version?
N/A
What problem was encountered?
Steps to reproduce the issue?
Our test creates two containers, uploads an image to one container then tries to copy by url with sas token.
Have you found a mitigation/solution?
Downgrade to 3.29.0
The text was updated successfully, but these errors were encountered: