You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All HTTP client implementations should implicitly set the Host header when communicating via HTTP 1.1 (this is a mandatory header)
Current Behavior
Only the Apache implementation sets this header
Possible Solution
Implicitly set the host header in netty-nio-client and url-connection-client, and/or
Implicitly set the host header in SdkHttpRequest
Steps to Reproduce (for bugs)
Follow the instructions in the SDK documentation for setting up the Netty Client
Enable request logging (or configure it to go through a logging proxy such as charles proxy)
Observe the missing Host headers
Context
I have an app that was originally developed against the v1 SDK, which has automated integration tests that use https://github.com/findify/s3mock. After switching to the v2 sdk I observed the same issue reported in findify/s3mock#147. Stepping through the code in a debugger session I could see my app was using the Netty implementation. Digging through the code I was able to find that the Apache implementation sets the host header but Netty and UrlConnection do not.
Your Environment
AWS Java SDK version used: 2.9.15 (however the issue still exists in 2.9.17)
JDK version used: OpenJDK 12
Operating System and version: Windows 10
The text was updated successfully, but these errors were encountered:
Originally reported in #429. Also reported at findify/s3mock#147. Per my investigation on that ticket, it appears to be a bug in the AWS SDK v2, not in s3mock.
Expected Behavior
All HTTP client implementations should implicitly set the Host header when communicating via HTTP 1.1 (this is a mandatory header)
Current Behavior
Only the Apache implementation sets this header
Possible Solution
Steps to Reproduce (for bugs)
Context
I have an app that was originally developed against the v1 SDK, which has automated integration tests that use https://github.com/findify/s3mock. After switching to the v2 sdk I observed the same issue reported in findify/s3mock#147. Stepping through the code in a debugger session I could see my app was using the Netty implementation. Digging through the code I was able to find that the Apache implementation sets the host header but Netty and UrlConnection do not.
Your Environment
The text was updated successfully, but these errors were encountered: