I came across this while testing SSL certificate validation against a secure Openstack (https endpoints).
Here are some steps to reproduce:
Actual Result: authentication fails again after step 3.
I looked into the code and found the problem was due to:
Therefore, any 2 Config objects with identical values except for SSLContext and/or HostnameVerifier will hit the same value in the LoadingCache and cause this issue.
Resolution: either remove the use of a cache or fix the "equals" function in the Config class.
** Config refers to org.openstack4j.core.transport.Config
***ClientFactory refers to org.openstack4j.connectors.jersey2.ClientFactory
Many thanks for investigating and reporting.
Since you already seem to have a solution: Would you like to contribute and submit a PR?
@auhlig Yes, I can do that. Can you mark this as a bug and let me know the steps in order to pull/modify/push the code back for code review?
Sure. Just fork this repo, create a branch in which you implement the fix and create a PullRequest against our master branch. Then we review.
Feel free to reach out in case you need help.