Menu

#125 Please migrate to apache httpclient API

Backlog
open
nobody
None
5
2020-01-12
2018-12-28
niol
No

(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

Discussion

  • niol

    niol - 2019-01-04

    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 .

     
  • Mickael Guessant

    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.

     
  • Mickael Guessant

    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.

     
  • Mickael Guessant

    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

     
  • Mickael Guessant

    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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.