Package: davmail
Version: 4.8.3.2554-1
Severity: important

Dear Maintainer,

   * Upon upgrading libhtmlcleaner-java from 2.2-1 to 2.21-2, I cannot connect 
to an exchange server via IMAP any more. Using Thunderbird, an error "Login 
failed" pops up.
   * When downgrading libhtmlcleaner-java to 2.2-1, connection works.
   * This happens both on openjdk-8 and oracle-java-8

Do you have an idea why this is happening? Is this a problem with
davmail or with libhtmlcleaner-java?


Here is the log for the non-working version:

2018-03-02 14:16:35,550 DEBUG [main] davmail  - OS Name: Linux Java version: 
1.8.0_161 64 System tray supported Current Desktop: i3
2018-03-02 14:16:35,553 INFO  [main] davmail  - SWT not available, fallback to 
JDK 1.6 system tray support
2018-03-02 14:16:38,589 DEBUG [davmail.imap.ImapServer] davmail  - Connection 
from /127.0.0.1 on port 1143
2018-03-02 14:16:38,596 INFO  [davmail.imap.ImapServer] davmail.connection  - 
CONNECT - 127.0.0.1:36516
2018-03-02 14:16:38,597 DEBUG [davmail.imap.ImapServer] davmail  - Connection 
from /127.0.0.1 on port 1143
2018-03-02 14:16:38,597 INFO  [davmail.imap.ImapServer] davmail.connection  - 
CONNECT - 127.0.0.1:36518
2018-03-02 14:16:38,908 DEBUG [ImapConnection-36518] 
davmail.exchange.ExchangeSession  - Test configuration status: 302
2018-03-02 14:16:38,908 DEBUG [ImapConnection-36516] 
davmail.exchange.ExchangeSession  - Test configuration status: 302
2018-03-02 14:16:38,909 DEBUG [ImapConnection-36516] davmail  - > * OK 
[CAPABILITY IMAP4REV1 AUTH=LOGIN IDLE MOVE] IMAP4rev1 DavMail 4.8.3-trunk 
server ready
2018-03-02 14:16:38,909 DEBUG [ImapConnection-36518] davmail  - > * OK 
[CAPABILITY IMAP4REV1 AUTH=LOGIN IDLE MOVE] IMAP4rev1 DavMail 4.8.3-trunk 
server ready
2018-03-02 14:16:38,909 DEBUG [ImapConnection-36518] davmail  - < 1 
authenticate LOGIN
2018-03-02 14:16:38,909 DEBUG [ImapConnection-36516] davmail  - < 1 
authenticate LOGIN
2018-03-02 14:16:38,912 DEBUG [ImapConnection-36518] davmail  - > + [...]
2018-03-02 14:16:38,912 DEBUG [ImapConnection-36516] davmail  - > + [...]
2018-03-02 14:16:38,912 DEBUG [ImapConnection-36518] davmail  - < [...]
2018-03-02 14:16:38,912 DEBUG [ImapConnection-36518] davmail  - > + [...]
2018-03-02 14:16:38,912 DEBUG [ImapConnection-36516] davmail  - < [...]
2018-03-02 14:16:38,912 DEBUG [ImapConnection-36516] davmail  - > + [...]
2018-03-02 14:16:38,912 DEBUG [ImapConnection-36518] davmail  - < [...]
2018-03-02 14:16:38,912 DEBUG [ImapConnection-36516] davmail  - < [...]
2018-03-02 14:16:39,002 DEBUG [ImapConnection-36518] davmail  - 
executeFollowRedirects(https://mail.example.com/owa/)
2018-03-02 14:16:39,016 DEBUG [ImapConnection-36518] davmail  - 
executeFollowRedirects: 
https://mail.example.com/owa/auth/logon.aspx?url=https%3a%2f%2fmail.example.com%2fowa%2f&reason=0
 redirectCount:1
2018-03-02 14:16:39,034 DEBUG [ImapConnection-36518] 
davmail.exchange.ExchangeSession  - Form based authentication detected
2018-03-02 14:16:39,095 DEBUG [ImapConnection-36518] 
davmail.exchange.ExchangeSession  - Authentication form not found at 
https://mail.example.com/owa/auth/logon.aspx?url=https%3a%2f%2fmail.example.com%2fowa%2f&reason=0,
 trying default url
2018-03-02 14:16:39,096 DEBUG [ImapConnection-36518] davmail  - 
executeFollowRedirects(/owa/auth/owaauth.dll)
2018-03-02 14:16:39,109 WARN  [ImapConnection-36518] 
org.apache.commons.httpclient.HttpMethodBase  - Going to buffer response body 
of large or unknown size. Using getResponseBodyAsStream instead is recommended.
2018-03-02 14:16:39,111 ERROR [ImapConnection-36518] 
davmail.exchange.ExchangeSession  - Authentication failed: invalid user or 
password
2018-03-02 14:16:39,111 INFO  [ImapConnection-36518] davmail.connection  - 
FAILED - 127.0.0.1:36518 [username]
2018-03-02 14:16:39,112 ERROR [ImapConnection-36518] davmail  - Authentication 
failed: invalid user or password
davmail.exception.DavMailAuthenticationException: Authentication failed: 
invalid user or password
        at 
davmail.exchange.ExchangeSession.throwAuthenticationFailed(ExchangeSession.java:750)
        at 
davmail.exchange.ExchangeSession.postLogonMethod(ExchangeSession.java:583)
        at davmail.exchange.ExchangeSession.formLogin(ExchangeSession.java:653)
        at davmail.exchange.ExchangeSession.<init>(ExchangeSession.java:240)
        at 
davmail.exchange.dav.DavExchangeSession.<init>(DavExchangeSession.java:500)
        at 
davmail.exchange.ExchangeSessionFactory.getInstance(ExchangeSessionFactory.java:147)
        at 
davmail.exchange.ExchangeSessionFactory.getInstance(ExchangeSessionFactory.java:94)
        at davmail.imap.ImapConnection.run(ImapConnection.java:139)
2018-03-02 14:16:39,113 DEBUG [ImapConnection-36518] davmail  - > 1 NO LOGIN 
failed
2018-03-02 14:16:39,114 DEBUG [ImapConnection-36518] davmail  - < LOGIN [...]
2018-03-02 14:16:39,851 DEBUG [ImapConnection-36516] davmail  - 
executeFollowRedirects(https://mail.example.com/owa/)
2018-03-02 14:16:39,861 DEBUG [ImapConnection-36516] davmail  - 
executeFollowRedirects: 
https://mail.example.com/owa/auth/logon.aspx?url=https%3a%2f%2fmail.example.com%2fowa%2f&reason=0
 redirectCount:1
2018-03-02 14:16:39,880 DEBUG [ImapConnection-36516] 
davmail.exchange.ExchangeSession  - Form based authentication detected
2018-03-02 14:16:39,900 DEBUG [ImapConnection-36516] 
davmail.exchange.ExchangeSession  - Authentication form not found at 
https://mail.example.com/owa/auth/logon.aspx?url=https%3a%2f%2fmail.example.com%2fowa%2f&reason=0,
 trying default url
2018-03-02 14:16:39,900 DEBUG [ImapConnection-36516] davmail  - 
executeFollowRedirects(/owa/auth/owaauth.dll)
2018-03-02 14:16:39,910 WARN  [ImapConnection-36516] 
org.apache.commons.httpclient.HttpMethodBase  - Going to buffer response body 
of large or unknown size. Using getResponseBodyAsStream instead is recommended.
2018-03-02 14:16:39,912 ERROR [ImapConnection-36516] 
davmail.exchange.ExchangeSession  - Authentication failed: invalid user or 
password
2018-03-02 14:16:39,912 INFO  [ImapConnection-36516] davmail.connection  - 
FAILED - 127.0.0.1:36516 [username]
2018-03-02 14:16:39,912 ERROR [ImapConnection-36516] davmail  - Authentication 
failed: invalid user or password
davmail.exception.DavMailAuthenticationException: Authentication failed: 
invalid user or password
        at 
davmail.exchange.ExchangeSession.throwAuthenticationFailed(ExchangeSession.java:750)
        at 
davmail.exchange.ExchangeSession.postLogonMethod(ExchangeSession.java:583)
        at davmail.exchange.ExchangeSession.formLogin(ExchangeSession.java:653)
        at davmail.exchange.ExchangeSession.<init>(ExchangeSession.java:240)
        at 
davmail.exchange.dav.DavExchangeSession.<init>(DavExchangeSession.java:500)
        at 
davmail.exchange.ExchangeSessionFactory.getInstance(ExchangeSessionFactory.java:147)
        at 
davmail.exchange.ExchangeSessionFactory.getInstance(ExchangeSessionFactory.java:94)
        at davmail.imap.ImapConnection.run(ImapConnection.java:139)
...



Here is the log of the working version:

2018-03-02 14:14:42,900 DEBUG [davmail.imap.ImapServer] davmail  - Connection 
from /127.0.0.1 on port 1143
2018-03-02 14:14:42,907 INFO  [davmail.imap.ImapServer] davmail.connection  - 
CONNECT - 127.0.0.1:36476
2018-03-02 14:14:42,908 DEBUG [davmail.imap.ImapServer] davmail  - Connection 
from /127.0.0.1 on port 1143
2018-03-02 14:14:42,908 INFO  [davmail.imap.ImapServer] davmail.connection  - 
CONNECT - 127.0.0.1:36478
2018-03-02 14:14:43,227 DEBUG [ImapConnection-36478] 
davmail.exchange.ExchangeSession  - Test configuration status: 302
2018-03-02 14:14:43,227 DEBUG [ImapConnection-36476] 
davmail.exchange.ExchangeSession  - Test configuration status: 302
2018-03-02 14:14:43,227 DEBUG [ImapConnection-36478] davmail  - > * OK 
[CAPABILITY IMAP4REV1 AUTH=LOGIN IDLE MOVE] IMAP4rev1 DavMail 4.8.3-trunk 
server ready
2018-03-02 14:14:43,227 DEBUG [ImapConnection-36476] davmail  - > * OK 
[CAPABILITY IMAP4REV1 AUTH=LOGIN IDLE MOVE] IMAP4rev1 DavMail 4.8.3-trunk 
server ready
2018-03-02 14:14:43,228 DEBUG [ImapConnection-36478] davmail  - < 1 
authenticate LOGIN
2018-03-02 14:14:43,228 DEBUG [ImapConnection-36476] davmail  - < 1 
authenticate LOGIN
2018-03-02 14:14:43,232 DEBUG [ImapConnection-36476] davmail  - > + [...]
2018-03-02 14:14:43,232 DEBUG [ImapConnection-36478] davmail  - > + [...]
2018-03-02 14:14:43,232 DEBUG [ImapConnection-36476] davmail  - < [...]
2018-03-02 14:14:43,232 DEBUG [ImapConnection-36478] davmail  - < [...]
2018-03-02 14:14:43,232 DEBUG [ImapConnection-36476] davmail  - > + [...]
2018-03-02 14:14:43,232 DEBUG [ImapConnection-36478] davmail  - > + [...]
2018-03-02 14:14:43,232 DEBUG [ImapConnection-36476] davmail  - < [...]
2018-03-02 14:14:43,234 DEBUG [ImapConnection-36478] davmail  - < [...]
2018-03-02 14:14:43,337 DEBUG [ImapConnection-36476] davmail  - 
executeFollowRedirects(https://mail.example.com/owa/)
2018-03-02 14:14:43,363 DEBUG [ImapConnection-36476] davmail  - 
executeFollowRedirects: 
https://mail.example.com/owa/auth/logon.aspx?url=https%3a%2f%2fmail.example.com%2fowa%2f&reason=0
 redirectCount:1
2018-03-02 14:14:43,386 DEBUG [ImapConnection-36476] 
davmail.exchange.ExchangeSession  - Form based authentication detected
2018-03-02 14:14:43,428 DEBUG [ImapConnection-36476] 
davmail.exchange.ExchangeSession  - Detected script based logon, redirect to 
form at 
https://mail.example.com/owa/auth/logon.aspx?replaceCurrent=1&url=https%3a%2f%2fmail.example.com%2fowa%2f
2018-03-02 14:14:43,429 DEBUG [ImapConnection-36476] davmail  - 
executeFollowRedirects(https://mail.example.com/owa/auth/logon.aspx?replaceCurrent=1&url=https%3a%2f%2fmail.example.com%2fowa%2f)
2018-03-02 14:14:43,468 DEBUG [ImapConnection-36476] davmail  - 
executeFollowRedirects(https://mail.example.com/owa/auth.owa)
2018-03-02 14:14:43,483 DEBUG [ImapConnection-36476] davmail  - 
executeFollowRedirects: https://mail.example.com/owa/ redirectCount:1
2018-03-02 14:14:44,374 WARN  [ImapConnection-36476] 
davmail.exchange.ExchangeSession  - Public folders not available: 404 Not Found 
at https://mail.example.com/public/
2018-03-02 14:14:44,386 WARN  [ImapConnection-36476] 
davmail.http.DavGatewayHttpClientFacade  - GET failed with status 404 at 
/public/?Cmd=galfind&AN=[username]
2018-03-02 14:14:44,386 DEBUG [ImapConnection-36476] 
davmail.exchange.ExchangeSession  - GET /public/?Cmd=galfind&AN=[username] 
failed: davmail.exception.HttpNotFoundException: 404 Not Found at 
/public/?Cmd=galfind&AN=[username] 404 Not Found at 
/public/?Cmd=galfind&AN=[username]
2018-03-02 14:14:44,386 DEBUG [ImapConnection-36476] 
davmail.exchange.ExchangeSession  - getEmail([username]) failed
2018-03-02 14:14:44,387 DEBUG [ImapConnection-36476] 
davmail.exchange.ExchangeSession  - Unable to get user email with alias null or 
[username] or null
2018-03-02 14:14:44,387 DEBUG [ImapConnection-36476] 
davmail.exchange.ExchangeSession  - Current user email is 
[username]@example.com, alias is [username], mailPath is 
/exchange/[username]@example.com/ on Exchange2007
2018-03-02 14:14:44,398 ERROR [ImapConnection-36476] 
davmail.exchange.ExchangeSession  - 404 Not Found at 
/exchange/[username]@example.com/
2018-03-02 14:14:44,399 DEBUG [ImapConnection-36476] 
davmail.exchange.ExchangeSession  - Unable to get mail folder at 
/exchange/[username]@example.com/, Webdav not available on Exchange server, 
retry with EWS
2018-03-02 14:14:44,467 DEBUG [ImapConnection-36476] davmail  - 
executeFollowRedirects(https://mail.example.com/owa/)
2018-03-02 14:14:44,480 DEBUG [ImapConnection-36476] davmail  - 
executeFollowRedirects: 
https://mail.example.com/owa/auth/logon.aspx?url=https%3a%2f%2fmail.example.com%2fowa%2f&reason=0
 redirectCount:1
2018-03-02 14:14:44,495 DEBUG [ImapConnection-36476] 
davmail.exchange.ExchangeSession  - Form based authentication detected
2018-03-02 14:14:44,508 DEBUG [ImapConnection-36476] 
davmail.exchange.ExchangeSession  - Detected script based logon, redirect to 
form at 
https://mail.example.com/owa/auth/logon.aspx?replaceCurrent=1&url=https%3a%2f%2fmail.example.com%2fowa%2f
2018-03-02 14:14:44,508 DEBUG [ImapConnection-36476] davmail  - 
executeFollowRedirects(https://mail.example.com/owa/auth/logon.aspx?replaceCurrent=1&url=https%3a%2f%2fmail.example.com%2fowa%2f)
2018-03-02 14:14:44,531 DEBUG [ImapConnection-36476] davmail  - 
executeFollowRedirects(https://mail.example.com/owa/auth.owa)
2018-03-02 14:14:44,544 DEBUG [ImapConnection-36476] davmail  - 
executeFollowRedirects: https://mail.example.com/owa/ redirectCount:1
2018-03-02 14:14:45,213 DEBUG [ImapConnection-36476] 
davmail.exchange.ExchangeSession  - Current user email is 
[full-username]@example.com, alias is [username] on Exchange2013
2018-03-02 14:14:45,213 DEBUG [ImapConnection-36476] 
davmail.exchange.ExchangeSession  - Session 
davmail.exchange.ews.EwsExchangeSession@4bdf8d6 created
2018-03-02 14:14:45,213 DEBUG [ImapConnection-36476] 
davmail.exchange.ExchangeSession  - Created new session 
davmail.exchange.ews.EwsExchangeSession@4bdf8d6 for user [username]
2018-03-02 14:14:45,213 INFO  [ImapConnection-36476] davmail.connection  - 
LOGON - 127.0.0.1:36476 [username]
2018-03-02 14:14:45,213 DEBUG [ImapConnection-36478] 
davmail.exchange.ExchangeSession  - Got session 
davmail.exchange.ews.EwsExchangeSession@4bdf8d6 from cache
2018-03-02 14:14:45,213 DEBUG [ImapConnection-36476] davmail  - > 1 OK 
Authenticated
2018-03-02 14:14:45,218 DEBUG [ImapConnection-36476] davmail  - < 2 select 
"INBOX"
2018-03-02 14:14:45,247 INFO  [ImapConnection-36478] davmail.connection  - 
LOGON - 127.0.0.1:36478 [username]
2018-03-02 14:14:45,247 DEBUG [ImapConnection-36478] davmail  - > 1 OK 
Authenticated



-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.14.0-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages davmail depends on:
ii  adduser                                          3.117
ii  default-jre-headless [java8-runtime-headless]    2:1.8-59
ii  jarwrapper                                       0.62
ii  libcommons-codec-java                            1.11-1
ii  libcommons-httpclient-java                       3.1-14
ii  libcommons-logging-java                          1.2-2
ii  libhtmlcleaner-java                              2.21-2
ii  libjackrabbit-java                               2.14.4-1
ii  libjcifs-java                                    1.3.19-2
ii  liblog4j1.2-java                                 1.2.17-8
ii  libmail-java                                     1.5.6-2
ii  libservlet3.1-java                               8.5.28-1
ii  libslf4j-java                                    1.7.25-2
ii  libstax2-api-java                                3.1.1-1
ii  libwoodstox-java                                 1:4.1.3-1
ii  logrotate                                        3.11.0-0.1
ii  lsb-base                                         9.20170808
ii  openjdk-8-jre-headless [java8-runtime-headless]  8u151-b12-1
ii  oracle-java8-installer [java8-runtime-headless]  8u161-1~webupd8~0

davmail recommends no packages.

Versions of packages davmail suggests:
pn  libswt-cairo-gtk-4-jni  <none>
pn  libswt-gtk-4-java       <none>

-- no debconf information

Reply via email to