-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
DataLake async file client cannot download using SAS tokens restricted to specific folders #23804
Comments
Thanks for the feedback, we'll investigate asap. |
Hi @simebg Emilian, would you be able to provide a more concrete example for the relevant variables you've blocked out? Of course please omit any sensitive information, but I am mostly interested in the following:
With that, I believe the team will be able to better assist you! Thanks! |
Hi @vincenttran-msft, here is the information you asked for. Please let me know if you require more information. Here is an example of the variables and the file structure:
The ACL permissions in the container, the folder, and the file have all been left as default. For generating the SAS token, I used the web interface in the Azure portal and generated one token for the container and one token for the folder. |
Hi @simebg Emilian, thank for the extra context I really appreciate it! In conclusion, we have discovered that there is a slight difference in the parsing of the parameters between In the meantime, from our testing and looking into your
Hopefully this will resolve your issue. However, if it does not, please don't hesitate to reply back to this thread, preferably with a Thanks! |
@simebg Could you please let us know if you had a chance to follow the above action plan ? Awaiting your reply. |
Thank you for looking into this @vincenttran-msft. You are correct about the extra
Hello @navba-MSFT, I just tried @vincenttran-msft's suggestion, and removing any trailing and leading Thank you both! |
@simebg Thanks for getting back. We will now proceed with closure of this github issue. If you need any further assistance on this issue in future, please feel free to reopen this thread. We would be happy to help. |
Describe the bug
SAS tokens for specific folders in a storage account don't work in the async client, however they do in the sync one.
SAS tokens generated on the whole container do work on both async and sync clients.
To Reproduce
Replace relevant variables in the following code, then execute it:
Expected behavior
Output should be something similar to:
However, I get the following:
Additional context
The test script was run on a new venv, with azure-storage-file-datalake (12.6.0) and aiohttp (3.8.1) installed.
The text was updated successfully, but these errors were encountered: