sing CNAME with pre-signed url [aws-java-sdk-s3] #5891
Labels
feature-request
A feature should be added or improved.
needs-triage
This issue or PR still needs to be triaged.
Describe the feature
I'm trying to find a way how I can use cname when creating presigned url with java sdk v2
use the same way in aws/aws-sdk-java#1498
Use Case
PresignedGetObjectRequest presignedRequest =
s3Presigner.presignGetObject(r -> r.getObjectRequest(get -> get.key("JooqConfiguration.java"))
.signatureDuration(Duration.ofDays(6)));
but i get a error result .
Caused by: java.lang.IllegalArgumentException: Parameter 'Bucket' must not be null
at software.amazon.awssdk.protocols.xml.internal.marshall.SimpleTypePathMarshaller.lambda$static$0(SimpleTypePathMarshaller.java:46)
at software.amazon.awssdk.protocols.xml.internal.marshall.XmlProtocolMarshaller.doMarshall(XmlProtocolMarshaller.java:106)
at software.amazon.awssdk.protocols.xml.internal.marshall.XmlProtocolMarshaller.marshall(XmlProtocolMarshaller.java:80)
at software.amazon.awssdk.protocols.xml.internal.marshall.XmlProtocolMarshaller.marshall(XmlProtocolMarshaller.java:49)
at software.amazon.awssdk.services.s3.transform.GetObjectRequestMarshaller.marshall(GetObjectRequestMarshaller.java:51)
... 5 more
Proposed Solution
No response
Other Information
No response
Acknowledgements
AWS Java SDK version used
2.27.21
JDK version used
11
Operating System and version
ios
The text was updated successfully, but these errors were encountered: