Please migrate to apache httpclient API
Brought to you by:
mguessan
(forwarded from https://bugs.debian.org/917175 )
Hi,
davmail depends on long (2011) deprecated libcommons-httpclient library. It would be nice to migrate to the maintained apache HttpClient library.
Thanks,
Alex
I've starte working on this and although this is still a mess (does not compile with 1300+ errors) I'll share my work at https://salsa.debian.org/debian/davmail/tree/httpclient4-api .
Initial test cases TestHttpClient4 class, covers basic needs: pooling, proxy, redirect, authentication, ...
Work to migrate from old httpclient 3 to 4 is still huge, with impacts almost everywhere.
Making progress on this: have a new HttpClientAdapter class to reimplement calls with HttpClient 4.
Ported the Caldav test case to this new class to validate it's working as expected.
However I found another issue: in CaldavConnection we rely on URIUtil for various url encoding fixes, this class is no longer available in HttpClient4.
Making huge progress on this: extracted all the Exchange form authentication logic in a separate authenticator. Also implemented a new HttpClient4 form authenticator.
=> Now we still need to implement Dav and EWS methods with HttpClient4
Status update:
- authenticators now use HttpClient 4
- we have an experimental HC4DavExchangeSession, complete but not ready for prime time yet
- next step is to convert EWSExchangeSession and EWSMethod to HC4