We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Configuring the http.nonProxyHosts system property is not working.
http.nonProxyHosts
As explained in the documentation the property http.nonProxyHosts should be used to determine non proxy hosts.
Setting http.nonProxyHosts system property has no effect because http.noProxyHosts is used instead.
http.noProxyHosts
Simply configure a client using environment while having defined http.nonProxyHosts system property. For example:
S3Client.fromEnvironment {}
Then if you make a request to a host defined in the system property, the http client will still try to go through the proxy.
Replace http.noProxyHosts with http.nonProxyHosts at this line : (
smithy-kotlin/runtime/protocol/http-client/common/src/aws/smithy/kotlin/runtime/http/engine/EnvironmentProxySelector.kt
Line 131 in 2c138ed
We were trying to configure the proxy of an S3 client only by using the Java System properties.
The text was updated successfully, but these errors were encountered:
Thanks for the bug report! You're right, we should be checking http.nonProxyHosts instead of http.noProxyHosts as the Java specification states.
To maintain backwards compatibility, we'll still need to support both system properties, but we will prioritize the new value http.nonProxyHosts.
Sorry, something went wrong.
http.nonProxyHost
fix: remove CLI only S3 config options (smithy-lang#1081)
813953a
lauzadis
Successfully merging a pull request may close this issue.
Describe the bug
Configuring the
http.nonProxyHosts
system property is not working.Expected Behavior
As explained in the documentation the property
http.nonProxyHosts
should be used to determine non proxy hosts.Current Behavior
Setting
http.nonProxyHosts
system property has no effect becausehttp.noProxyHosts
is used instead.Steps to Reproduce
Simply configure a client using environment while having defined
http.nonProxyHosts
system property. For example:S3Client.fromEnvironment {}
Then if you make a request to a host defined in the system property, the http client will still try to go through the proxy.
Possible Solution
Replace
http.noProxyHosts
withhttp.nonProxyHosts
at this line : (smithy-kotlin/runtime/protocol/http-client/common/src/aws/smithy/kotlin/runtime/http/engine/EnvironmentProxySelector.kt
Line 131 in 2c138ed
Context
We were trying to configure the proxy of an S3 client only by using the Java System properties.
Your Environment
The text was updated successfully, but these errors were encountered: