#2531 Deprecated DefaultHttpClient
Closed: migrated 3 years ago by dmoluguw. Opened 7 years ago by edewata.

The DefaultHttpClient has been deprecated but it's still used in several places. It should be replaced with the following code:

try (CloseableHttpClient httpClient = HttpClientBuilder.create().build()) {
    ...
}

See also http://stackoverflow.com/questions/15336477/deprecated-java-httpclient-how-hard-can-it-be.


Per PKI Bug Council of 11/03/2016: 10.4

Fixed in master:

  • db58e6071f6bb57de006e6499c0a0c6a8c8e67bf

The remaining task is to replace DefaultHttpClient in PKIConnection.java.

The patch has been reverted due to build issue on RHEL/CentOS:

  • 9937cbc5d44328ea8e630f21767bcd3642b0a591

Apparently httpcomponents-client is different on different platforms:

  • httpcomponents-client-4.2.5-5.el7_0.noarch
  • httpcomponents-client-4.5.2-4.fc25.noarch

Metadata Update from @edewata:
- Issue set to the milestone: UNTRIAGED

7 years ago

Dogtag PKI is moving from Pagure issues to GitHub issues. This means that existing or new
issues will be reported and tracked through Dogtag PKI's GitHub Issue tracker.

This issue has been cloned to GitHub and is available here:
https://github.com/dogtagpki/pki/issues/2651

If you want to receive further updates on the issue, please navigate to the
GitHub issue and click on Subscribe button.

Thank you for understanding, and we apologize for any inconvenience.

Metadata Update from @dmoluguw:
- Issue close_status updated to: migrated
- Issue status updated to: Closed (was: Open)

3 years ago

Login to comment on this ticket.

Metadata