Skip to content

Sign CNAME with pre-signed url #5891

Closed
Closed
@jerry3323

Description

@jerry3323

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

Metadata

Metadata

Assignees

Labels

closed-for-stalenessfeature-requestA feature should be added or improved.p2This is a standard priority issueresponse-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 10 days.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions