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

Trailing space in the Endpoint config parameter crashes the client #689

Closed
sergeyfd opened this issue May 20, 2016 · 3 comments
Closed

Trailing space in the Endpoint config parameter crashes the client #689

sergeyfd opened this issue May 20, 2016 · 3 comments
Assignees
Labels
bug This issue is a bug.

Comments

@sergeyfd
Copy link

Hello,

Client crashes if Endpoint has a trailing space:

awsConfig.WithEndpoint("some.server.com:80 ")

008c3463483c2d584738
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x4a438e]

goroutine 1 [running]:
panic(0x88cd80, 0xc82000a1a0)
    /home/dubros/goroot/go/src/runtime/panic.go:464 +0x3e6
aws/vendor/github.com/aws/aws-sdk-go/service/s3.validateSSERequiresSSL(0xc820057c00)
    /home/dubros/goroot/eng/src/aws/vendor/github.com/aws/aws-sdk-go/service/s3/sse.go:15 +0x17e
aws/vendor/github.com/aws/aws-sdk-go/aws/request.(*HandlerList).Run(0xc820057d08, 0xc820057c00)
    /home/dubros/goroot/eng/src/aws/vendor/github.com/aws/aws-sdk-go/aws/request/handlers.go:136 +0xc3
aws/vendor/github.com/aws/aws-sdk-go/aws/request.(*Request).Build(0xc820057c00, 0x0, 0x0)
    /home/dubros/goroot/eng/src/aws/vendor/github.com/aws/aws-sdk-go/aws/request/request.go:189 +0x69
aws/vendor/github.com/aws/aws-sdk-go/aws/request.(*Request).Sign(0xc820057c00, 0x0, 0x0)
    /home/dubros/goroot/eng/src/aws/vendor/github.com/aws/aws-sdk-go/aws/request/request.go:210 +0x31
aws/vendor/github.com/aws/aws-sdk-go/aws/request.(*Request).Send(0xc820057c00, 0x0, 0x0)
    /home/dubros/goroot/eng/src/aws/vendor/github.com/aws/aws-sdk-go/aws/request/request.go:258 +0x703
aws/vendor/github.com/aws/aws-sdk-go/service/s3.(*S3).ListBuckets(0xc820026080, 0xbc7b18, 0x4d30e4, 0x0, 0x0)
    /home/dubros/goroot/eng/src/aws/vendor/github.com/aws/aws-sdk-go/service/s3/api.go:998 +0x4f
main.ListBuckets(0xc820026080)
    /home/dubros/goroot/eng/src/aws/aws_gs.go:30 +0x59
main.main()
    /home/dubros/goroot/eng/src/aws/aws_gs.go:72 +0x105
Error: process exited with code 2.
@xibz xibz added the bug This issue is a bug. label May 20, 2016
@xibz xibz self-assigned this May 20, 2016
@xibz
Copy link
Contributor

xibz commented May 20, 2016

Hello @sergeyfd, thank you for bringing this to our attention and the detailed log. I'll go ahead and try to reproduce it.

@xibz
Copy link
Contributor

xibz commented May 20, 2016

@sergeyfd - A current workaround is to Trim the url for now. We are looking into a fix. Again, thank you for reaching out to us.

xibz added a commit to xibz/aws-sdk-go that referenced this issue May 20, 2016
@xibz
Copy link
Contributor

xibz commented May 20, 2016

Hello @sergeyfd, I have a PR #690 that addresses this issue! Going to close this for now and once merged in, if there are any additional problems, then please reach out to us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug.
Projects
None yet
Development

No branches or pull requests

2 participants