NO_PROXY environment variable are not respected by S3CrtAsyncClient #6060
Labels
bug
This issue is a bug.
p2
This is a standard priority issue
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 10 days.
Describe the bug
S3CrtAsyncClient
doesn't respect the values in the NO_PROXY environment variableRegression Issue
Expected Behavior
The client should not establish connections to the host included in the NO_PROXY variable
Current Behavior
Once http_proxy and https_proxy are set, NO_PROXY env var or adding no proxy hosts to the S3CrtProxyConfiguration doesn't work and the client will try to establish a proxy-based connection.
Reproduction Steps
install localstack
copy the
http_proxy="http://localhost:8888" https_proxy="http://localhost:8888" no_proxy="localhost" jbang src/main/java/com/aws/clients/S3CrtAsyncClientTest.java
will throw errorExtra - I also tested with S3Client
It works
Possible Solution
I think the internal http client has some troubles parsing the env var as I see another issue it doesn't support wildcard
maybe the parsing has more issues
Additional Information/Context
No response
AWS Java SDK version used
2.31.28
JDK version used
21
Operating System and version
mOS Sequoia 15.4.1
The text was updated successfully, but these errors were encountered: