Comments (5)
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.
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.
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.
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.
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)
- Create a CosmosClient fails, because of the usage of deprecated field of jackson.core in Utils.java HOT 5
- NullPointerException HOT 3
- Update Identity blurbs in readmes HOT 2
- Improve Azure AI Inference tracing and implement metrics
- Observability: uber [Se] task
- Intermediate certificate not loaded from the keyvault using JCA in tomcat HOT 3
- Remove context-based AZ_TRACING_NAMESPACE_KEY propagation in tables and form recognizer
- New CosmosClient(s) created every 5 minutes? HOT 2
- Incorrect SharedTokenCacheCredential docs
- [FEATURE REQ]Port PR from .Net to support multiple region names HOT 1
- [BUG] io.netty.channel.ConnectTimeoutException after one minute of running
- [BUG] Azure Service Bus Spring Cloud Stream isolated-object-mapper property HOT 2
- Perf dashboard review/overhaul
- Cleanup old autorest config flags from swagger/README.md
- Address Resolution bug on a removed region HOT 1
- Intellij Azure SDK Plugin
- Improve Javadoc for partner teams.
- Clean out the SDK repository
- Simplified build process
- Message acknowledgement process taking long time
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-sdk-for-java.