Git Product home page Git Product logo

Comments (6)

joshfree avatar joshfree commented on May 28, 2024

@ibrahimrabab could you please take a look?

from azure-sdk-for-java.

ibrahimrabab avatar ibrahimrabab commented on May 28, 2024

Hi @HassanBadir
Thanks for reaching out! Can you please provide the full endpoint URL with the SAS signature redacted? When I tried to reproduce this, it required me to enable permissions on service, container, and blob. Can you confirm that you are able to call download with only permission on the service level?

Also, can you provide a code snippet of how you made this work in Python with the wget? Thanks!

from azure-sdk-for-java.

github-actions avatar github-actions commented on May 28, 2024

Hi @HassanBadir. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.

from azure-sdk-for-java.

HassanBadir avatar HassanBadir commented on May 28, 2024

Hey @ibrahimrabab,

maybe i was misunderstood..

i create SAS on the Storage level, with permissions to "Object" in order to be able to download blobs.

meaning on storage i go to:
image

then create this SAS:
image

and with this i can't create blobClient directly .. i must split the SAS from the blob, and pass them separately as mentioned above:

  val blobClientBuilder = AzureBlobClientBuilder().endpoint(blobUrl).**sasToken(sasToken)**

from azure-sdk-for-java.

ibrahimrabab avatar ibrahimrabab commented on May 28, 2024

Hi @HassanBadir
Apologies on not responding back on this earlier. I tested out the sas token generation as you did above, and the download calls work just fine for me only using .endpoint(). One thing I noticed in your code snippets is that you do not set .containerName() and .blobName() on the client builder. Are you doing that? If not, can you please set the container name and the blob name on the builder and try to make the download call again?

You should do the following:
BlobClientBuilder builder = new BlobClientBuilder()
.endpoint("https://<"accountname">.blob.core.windows.net/?sv=<"sastoken">")
.containerName("<"containerName">")
.blobName("<"blobname">");

And after building the BlobClientBuilder, try making the download calls again. Let us know if it works! If not, we can further investigate.

from azure-sdk-for-java.

github-actions avatar github-actions commented on May 28, 2024

Hi @HassanBadir. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.

from azure-sdk-for-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.