fix(RocketChatClientCallBuilder): fix proxy access without credentials (JENKINS-55890)#30
Conversation
…s (JENKINS-55890) Including refactoring to improve code quality and to reduce complexity of different execution paths. Also fixes: org.apache.http.conn.UnsupportedSchemeException: http protocol is not supported when using proxy (with or without auth) and trustSSL is active. Also switches from deprecated SSLSocketFactory to SSLConnectionSocketFactory.
|
Please note that I did not create new tests because I did not introduce new features. PS: Credits to my colleague @uhanisch whom I worked with on this issue. |
|
thanks for the PR, but actually the integration test is failing. Will try to find time next week to check |
|
The failures on travis don't seem related to my actual code changes: |
|
thanks for the PR, I'll check for the test errors |
|
@hypery2k thanks for merging! In case I find the time for this: What would be right approach for this project/plugin to test proxy access? Something docker-based? Or just a java proxy implementation that is embedded into the unit/integration test like https://github.com/adamfisk/LittleProxy? |
|
I like the Java based integration test approach. Feel free to send a PR. Any help is appreciated |
Including refactoring to improve code quality
and to reduce complexity of different execution paths.
Also fixes:
org.apache.http.conn.UnsupportedSchemeException: http protocol is not supported
when using proxy (with or without auth) and trustSSL is active.
Also switches from deprecated SSLSocketFactory to SSLConnectionSocketFactory.
https://issues.jenkins-ci.org/browse/JENKINS-55890