Skip to content
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

sing CNAME with pre-signed url [aws-java-sdk-s3] #5891

Open
2 tasks
jerry3323 opened this issue Feb 19, 2025 · 0 comments
Open
2 tasks

sing CNAME with pre-signed url [aws-java-sdk-s3] #5891

jerry3323 opened this issue Feb 19, 2025 · 0 comments
Labels
feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged.

Comments

@jerry3323
Copy link

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

  • I may be able to implement this feature request
  • This feature might incur a breaking change

AWS Java SDK version used

2.27.21

JDK version used

11

Operating System and version

ios

@jerry3323 jerry3323 added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

1 participant