John van der Kamp created NET-734: ------------------------------------- Summary: IMAP login fails with 3.11.1 Key: NET-734 URL: https://issues.apache.org/jira/browse/NET-734 Project: Commons Net Issue Type: Bug Components: IMAP Affects Versions: 3.11.1 Reporter: John van der Kamp
We tried to upgrade from 3.5 to 3.11.1 but now IMAP logins fail. In IMAPReply.java a regular expression is changed and now looks like this: {quote} private static final String TAGGED_RESPONSE = "^\\w\{1,80} (\\S\{1,80}).\{0,80}"; {quote} The matchings now have length restrictions and this fails the call to {{matches}} later on in {{{}getReplyCode{}}}. The IMAP server in our case sends the following reply on a correct login: {{CBJJ OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ENABLE IDLE ID SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE STATUS=SIZE SAVEDATE LITERAL+ QUOTA] Logged in}} {{}} and now we get an {{{}org.apache.commons.net.MalformedServerReplyException{}}}. The login was fine, but the check is faulty.{{{}{}}} -- This message was sent by Atlassian Jira (v8.20.10#820010)