[blob]: enable cross account async copy (same server)
See original GitHub issueWhich service(blob, file, queue, table) does this issue concern?
Blob
Which version of the Azurite was used?
3.8.0
Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)
DockerHub
What’s the Node.js version?
What problem was encountered?
copying a blob which exists in a different storage account does not work and instead returns a 404. it turns out this is due to https://github.com/Azure/Azurite/blob/master/src/blob/handlers/BlobHandler.ts#L627, which explicitly returns blobNotFound
in the case that the source storage account isn’t the same as the destination storage account. as it appeared to handle this fine all the way down the stack (at least in the Loki provider), i removed the comparison and built a new local image. upon rerunning our local tests this worked fine, so this is more of a question.
is cross-account blob copy explicitly disabled? it appears to be handled in the backend.
Steps to reproduce the issue?
- setup 2 storage accounts
- create a blob on account 1
- attempt to copy the blob to account 2 using account 1 as the copy source
Have you found a mitigation/solution?
locally i was able to just remove the offending line as described above. any reason this couldn’t be included in master?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top GitHub Comments
Glad to see your contribution! There are some scenarios about copy blob.
Scenarios:
Current we only support scenario 1. And the goal here is to support scenario 2.
There are some potential ideas for the implementation.
Seems idea 2 is more easy to consume.
I’m happy to do whatever is most helpful. It seems like going the extra mile isn’t considerably more work, but I’ll start with your suggestion and we can go from there.
Thanks for this project! Our test runs are much more reliable.