v4.Signer.Presign does the wrong thing when expiration is 0 #1617
Labels
bug
This issue is a bug.
investigating
This issue is being investigated and/or work is in progress to resolve the issue.
Version of AWS SDK for Go?
tip
Version of Go (
go version
)?1.9.1
What issue did you see?
When Presign is called with a 0-valued time.Duration for its expiration, it behaves the same as calling Sign, rather than Presign. Presign should panic, return an error, or not use the same helper as Sign.
Steps to reproduce
Call v4.Signer.Presign with 0 for the expiration parameter. URL parameters will not be generated.
The text was updated successfully, but these errors were encountered: