Ticket #1484663 (closed Bugs: fixed)
Personal Settings => Folders invalidates session because IMAP auth to dovecot fails
| Reported by: | chasd | Owned by: | |
|---|---|---|---|
| Priority: | 5 | Milestone: | |
| Component: | IMAP connection | Version: | svn-trunk |
| Severity: | normal | Keywords: | |
| Cc: | chasd@… |
Description (last modified by thomasb) (diff)
Using RoundCube trunk r915 20071109, apache 1.3.3x, php 4.4.2, PostgreSQL 7.4.11, dovecot-1.0-0.1.rc7 on Fedora 6 PPC. Camino 1.6a1pre browser on OS X 10.4.9 PPC.
Navigating and using the mail functions is OK. When accessing the "Personal Settings" area, the "Preferences" and "Identities" tabs work OK. Choosing "Folders" results in a significant wait, then "Connection to IMAP server failed." If you go to "Personal Settings" and then click the RoundCube Logo to get back to the mail functions, the result is "Your session is invalid or expired." Other dovecot users have experienced this issue or similar :
<http://roundcubeforum.net/forum/index.php?topic=2196.0>
Instead of commenting out the $username completely, I replaced it with a simpler
"$username = $USER_DATAusername?;"
Errors logged by RoundCube are :
[13-Nov-2007 12:10:48 -0600] IMAP Error: Authentication for chasd@mail.silveroak s.com failed (LOGIN): "a001 NO Authentication failed." in on line 0 [13-Nov-2007 12:21:32 -0600] IMAP Error: Authentication for chasd@mail.silveroak s.com failed (LOGIN): "a001 NO Authentication failed." in on line 0 [13-Nov-2007 12:36:26] PHP Warning: array_flip(): The argument should be an arr ay in /var/www/roundcube/program/include/rcube_imap.inc on line 2497 [13-Nov-2007 12:46:58 -0600] IMAP Error: Authentication for chasd@mail.silveroak s.com failed (LOGIN): "a001 NO Authentication failed." in on line 0 [13-Nov-2007 12:47:16 -0600] IMAP Error: Authentication for chasd@mail.silveroak s.com failed (LOGIN): "a001 NO Authentication failed." in on line 0 [13-Nov-2007 12:47:16] PHP Warning: fputs(): supplied argument is not a valid s tream resource in /var/www/roundcube/program/lib/imap.inc on line 1717 [13-Nov-2007 12:47:16] PHP Warning: Invalid argument supplied for foreach() in /var/www/roundcube/program/include/rcube_imap.inc on line 1586 [13-Nov-2007 12:47:16] PHP Warning: Invalid argument supplied for foreach() in /var/www/roundcube/program/include/rcube_imap.inc on line 2458 [13-Nov-2007 12:47:16] PHP Warning: fputs(): supplied argument is not a valid s tream resource in /var/www/roundcube/program/lib/imap.inc on line 1767 [13-Nov-2007 12:48:34 -0600] IMAP Error: Authentication for chasd@mail.silveroak s.com failed (LOGIN): "a001 NO Authentication failed." in on line 0
It seems like the "$_SESSIONusername?" variable passed to the "connenct" function in index.php is getting stomped on or mangled by the action of setting the $username variable in the title of the page used to display the "Folders" tab of "Personal Settings." It is likely that only dovecot reacts to the change and other IMAP servers don't care.
