6.0.0-beta1
7/13/25

[#11007] Wrong Imap_Client exception if follow-up auth fails
Summary Wrong Imap_Client exception if follow-up auth fails
Queue Horde Framework Packages
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester jan (at) horde (dot) org
Created 02/17/2012 (4895 days ago)
Due
Updated 02/20/2012 (4892 days ago)
Assigned
Resolved 02/20/2012 (4892 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
02/20/2012 07:05:02 AM Git Commit Comment #4 Reply to this comment
Changes have been made in Git (develop):

commit 6210694d913c7b041fec96aef6e3c1cb9cc91b0d
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Sun Feb 19 23:35:00 2012 -0700

     [mms] Return correct authentication error if authentication fails 
after the original login (Bug #11007).

  .../Imap_Client/lib/Horde/Imap/Client/Socket.php   |   18 +++++++++++++-----
  framework/Imap_Client/package.xml                  |    2 ++
  2 files changed, 15 insertions(+), 5 deletions(-)

http://git.horde.org/horde-git/-/commit/6210694d913c7b041fec96aef6e3c1cb9cc91b0d
02/20/2012 06:47:31 AM Michael Slusarz State ⇒ Resolved
 
02/20/2012 06:46:00 AM Git Commit Comment #3 Reply to this comment
Changes have been made in Git (master):

commit 6210694d913c7b041fec96aef6e3c1cb9cc91b0d
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Sun Feb 19 23:35:00 2012 -0700

     [mms] Return correct authentication error if authentication fails 
after the original login (Bug #11007).

  .../Imap_Client/lib/Horde/Imap/Client/Socket.php   |   18 +++++++++++++-----
  framework/Imap_Client/package.xml                  |    2 ++
  2 files changed, 15 insertions(+), 5 deletions(-)

http://git.horde.org/horde-git/-/commit/6210694d913c7b041fec96aef6e3c1cb9cc91b0d
02/17/2012 05:37:41 PM Jan Schneider Comment #2 Reply to this comment
Beside that, this leads to an endless loop in IMP_Imap_Tree->next() 
which always returns ''.
02/17/2012 05:08:36 PM Jan Schneider Comment #1
Priority ⇒ 1. Low
Patch ⇒ No
Milestone ⇒
Assigned to Michael Slusarz
Queue ⇒ Horde Framework Packages
Summary ⇒ Wrong Imap_Client exception if follow-up auth fails
Type ⇒ Bug
State ⇒ Assigned
Reply to this comment
If authentication fails, and this is not the initial log in, the 
library returns "No supported IMAP authentication method could be 
found.".
Timestamp: Fri, 17 Feb 2012 18:03:00 +0100
S: * OK neo Cyrus IMAP4 v2.2.13-Debian-2.2.13-19ubuntu5 server ready
C: 1 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS 
ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT 
THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE XIMAPPROXY
S: 1 OK Completed
C: [LOGIN Command - username: jan]
S: 2 OK User logged in
C: 3 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS 
ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT 
THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE LOGINDISABLED
S: 3 OK Completed
C: 4 NAMESPACE
S: * NAMESPACE (("INBOX." ".")) (("user." ".")) (("" "."))
S: 4 OK Completed
C: 5 LOGOUT
S: * BYE LOGOUT received
S: 5 OK Completed
------------------------------
Timestamp: Fri, 17 Feb 2012 18:03:03 +0100
S: * OK neo Cyrus IMAP4 v2.2.13-Debian-2.2.13-19ubuntu5 server ready
C: [LOGIN Command - username: jan]
Slow IMAP Command: 4,8 seconds
S: 1 NO LOGIN failed

If providing an incorrect password right from the start, I get the 
correct error back.
Timestamp: Fri, 17 Feb 2012 18:04:25 +0100
S: * OK neo Cyrus IMAP4 v2.2.13-Debian-2.2.13-19ubuntu5 server ready
C: 1 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS 
ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT 
THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE XIMAPPROXY
S: 1 OK Completed
C: [LOGIN Command - username: jan]
Slow IMAP Command: 5,075 seconds
S: 2 NO LOGIN failed

Saved Queries