Giter Site home page Giter Site logo

Comments (5)

smiroslav avatar smiroslav commented on September 25, 2024 1

It seems that unused headers have to be set to empty explicitly. Otherwise, because of the code below, their values become null in the string to be signed
https://github.com/Azure/azure-storage-java/blob/v8.6.6/microsoft-azure-storage/src/com/microsoft/azure/storage/core/SharedAccessSignatureHelper.java#L409-L420

With this change code works

        SharedAccessBlobHeaders headers = new SharedAccessBlobHeaders();
        headers.setCacheControl(String.format("private, max-age=%d, immutable", 900));
        headers.setContentDisposition("");
        headers.setContentEncoding("");
        headers.setContentLanguage("");
        headers.setContentType("");

from azure-sdk-for-java.

joshfree avatar joshfree commented on September 25, 2024

Hi @t-rana someone from the Storage team will follow up with you shortly, but please note that 8.6.6 is a very old SDK from 2019 that has been superseded by much newer versions (if you follow the This artifact was moved to links on maven central they'll lead you to the latest 12.25.x version here https://mvnrepository.com/artifact/com.azure/azure-storage-blob). It's highly recommended that you upgrade from version 8 to version 12.

from azure-sdk-for-java.

ibrahimrabab avatar ibrahimrabab commented on September 25, 2024

Hi @t-rana
The SDK version you are using is very old and it is advised that you upgrade to version 12 since there are many changes we've introduced since that may help in avoiding the issue you're seeing.
Suggestion provided by @smiroslav seems to be correct. Are you unblocked now or still experiencing issues?

from azure-sdk-for-java.

github-actions avatar github-actions commented on September 25, 2024

Hi @t-rana. 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.

github-actions avatar github-actions commented on September 25, 2024

Hi @t-rana, we're sending this friendly reminder because we haven't heard back from you in 7 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

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.