You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Julian Reschke (Jira)" <ji...@apache.org> on 2026/02/17 12:26:00 UTC

[jira] [Commented] (JCR-5122) Get rid of Apache HTTP Client dependency

    [ https://issues.apache.org/jira/browse/JCR-5122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18059060#comment-18059060 ] 

Julian Reschke commented on JCR-5122:
-------------------------------------

Process consideration: we could keep the new client method package private (not exported) while switching to it in the sp2dav component. Thus we can work do that work in two steps.

> Get rid of Apache HTTP Client dependency
> ----------------------------------------
>
>                 Key: JCR-5122
>                 URL: https://issues.apache.org/jira/browse/JCR-5122
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>          Components: jackrabbit-spi2dav, jackrabbit-webdav
>            Reporter: Konrad Windszus
>            Priority: Major
>
> Instead of Apache HTTP Client (in the outdated 4.5.x version) we should leverage the Java-built-in HTTP Client: https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpClient.html
> See also https://hc.apache.org/status.html
> bq. Users of HttpClient 4.x are strongly encouraged to migrate to HttpClient 5.x
> Such a change cannot be backwards-compatible as the exposed API (e.g. https://github.com/apache/jackrabbit/blob/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/client/methods/BaseDavRequest.java) leverages Apache HTTP Components classes (most prominently extends {{org.apache.http.client.methods.HttpEntityEnclosingRequestBase}}).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)