Skip to content
New issue

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

Use non-deprecated code and remove unused imports #389

Merged
merged 7 commits into from
Oct 17, 2019
Merged

Use non-deprecated code and remove unused imports #389

merged 7 commits into from
Oct 17, 2019

Conversation

res0nance
Copy link
Contributor

Removing all the deprecated code particularly in the WinRM bits

Copy link
Member

@jvz jvz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me so far.

@res0nance res0nance marked this pull request as ready for review August 21, 2019 09:59
@res0nance
Copy link
Contributor Author

I'm done with this, finally cleaned up most of the deprecated code

@res0nance res0nance changed the title [WIP] Use non-deprecated code and remove unused imports Use non-deprecated code and remove unused imports Aug 21, 2019
if (useHTTPS) {
try {
SSLConnectionSocketFactory sslConnectionFactory = new SSLConnectionSocketFactory(
new SSLContextBuilder().loadTrustMaterial(null, new TrustSelfSignedStrategy()).build(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now I'm assuming this is a pure refactoring here, but this is not the greatest idea. There should probably be an admin-controlled config setting to disable hostname verification and whatnot.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is pure refactoring, we should enhance this from a security perspective outside of this PR.

Copy link
Member

@jvz jvz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good to me. I haven't performed any manual testing.

@res0nance
Copy link
Contributor Author

I'll merge this tomorrow if no issues.

Copy link
Contributor

@fcojfernandez fcojfernandez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job!

@res0nance res0nance merged commit 7be5f18 into jenkinsci:master Oct 17, 2019
@res0nance res0nance deleted the undeprecate branch October 17, 2019 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants