6.0.0-beta1
7/5/25

[#11270] Ajax Gui claims about connection error
Summary Ajax Gui claims about connection error
Queue DIMP
Queue Version 1.1.8
Type Bug
State Not A Bug
Priority 2. Medium
Owners
Requester martin.hochreiter (at) wavenet (dot) at
Created 07/14/2012 (4739 days ago)
Due
Updated 07/15/2012 (4738 days ago)
Assigned
Resolved 07/15/2012 (4738 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
07/15/2012 12:15:02 PM Michael Rubinsky Comment #5 Reply to this comment
FWIW, APC cache has a known issue with using closures, which are used 
in IMP's prefs.php.  You should have seen some strange errors related 
to closures in your error log.
07/15/2012 09:57:12 AM linuxbox (at) wavenet (dot) at Comment #4 Reply to this comment
I have some sort of solution:

if  I disable the apc cache ... the error disappears

(I use the distribution apc version of ubuntu 12.04 3.1.7-1)

funny thing ...

lg
martin


07/15/2012 08:04:22 AM linuxbox (at) wavenet (dot) at Comment #3 Reply to this comment
I cant belive that courier is "badly broken" as you say ...
to be exactly:
that 3 versions of courier are badly broken,
that the same version that was running some hours before on 8.04 
without any problems is badly broken
and that Thunderbird, Outlook, Squirrel and the traditionell view of 
imp has no problem with that...
Is it possible that it is a library on 12.04 that causes this issue?

regards
martin
07/15/2012 05:38:07 AM Michael Slusarz Comment #2
State ⇒ Not A Bug
Reply to this comment
This:

READ: NUMBER: 12
READ: ATOM: UID
READ: ATOM: FETCH
READ: ATOM:
51974,51973,51972,51971,51970,51969,51968,51967,51966,51965,51964,51963,51962,51961,51955,51954,51953,51837,51822,51646,51274,44651,44553,41244,41066,41060,41041,9381,9160
READ: LPAREN
READ: ATOM: ENVELOPE
READ: ATOM: FLAGS
READ: ATOM: RFC822.SIZE
READ: ATOM: BODY.PEEK
READ: LBRACKET
READ: ATOM: HEADER.FIELDS
READ: LPAREN
READ: ATOM: IMPORTANCE
READ: ATOM: LIST-POST
READ: ATOM: X-PRIORITY
READ: RPAREN
READ: RBRACKET
READ: RPAREN
READ: EOL

Corresponds to this IMAP command:

12 UID FETCH 
51974,51973,51972,51971,51970,51969,51968,51967,51966,51965,51964,51963,51962,51961,51955,51954,51953,51837,51822,51646,51274,44651,44553,41244,41066,41060,41041,9381,9160 (ENVELOPE FLAGS RFC822.SIZE BODY.PEEK[HEADER.FIELDS (IMPORTANCE LIST-POST 
X-PRIORITY)])

Which is a perfectly valid IMAP command.  If Courier can't handle this 
basic command (it is defined in the base RFC spec), it is badly broken.
07/14/2012 01:46:01 PM martin (dot) hochreiter (at) wavenet (dot) at Comment #1
Priority ⇒ 2. Medium
Patch ⇒ No
Milestone ⇒
Queue ⇒ DIMP
Summary ⇒ Ajax Gui claims about connection error
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
Hi!
I upgraded to ubuntu 12.04 and reinstalled horde + dimp.
I have the problem in the ajax gui, that dimp claims about "connection 
error while connecting to the server" - the traditionell view does not 
have that problem.

I can remember that there was a problem with the ajax gui and a bug in 
the courier imap server. I tested 3 versions of the courier - imap 
server including the former (self compiled) version of 8.04 ... the 
error remains.
Additionally the apache thread got a segmentation fault while opening 
e.g. the inbox in the ajax gui.

Horde debug:
2012-07-14T14:16:36+02:00 DEBUG: HORDE [kronolith] SQL  (0,0001s)
         SELECT * FROM kronolith_sharesng_users WHERE share_id = '1' 
[pid 24355 on line 803 of "/usr/share/php/Horde/Db/Adapter/Base.php"]
2012-07-14T14:16:36+02:00 NOTICE: HORDE [imp] PHP ERROR: Undefined 
offset: 3 [pid 24052 on line 3131 of 
"/usr/share/php/Horde/Imap/Client/Socket.php"]
2012-07-14T14:16:36+02:00 DEBUG: HORDE  1. 
IMP_Ajax_Application->doAction() 
/srv/www/htdocs/mail/services/ajax.php:60


Courier Imap debug (it claims about an invalid argument):
WRITE: * SORT 9160 9381 41041 41060 41066 41244 44553 44651 51274 
51646 51822 51837 51953 51954 51955 51961 51962 51963 51964 51965 
51966 51967 51968 51969 51970 51971 51972 51973 51974 51975 51976 
51977 51978 51979 51980 51981 51982 51983 51984 51985 51986 51987 
51988 51989 52003 52007 52008 52009 52010 52011 52012 52013 52014 
52015 52016 52017 52048 52053 52054 52055 52056
10 OK SORT done.
READ: NUMBER: 11
READ: ATOM: UID
READ: ATOM: SEARCH
READ: NUMBER: 61
READ: EOL
WRITE: * SEARCH 52056
11 OK SEARCH done.
READ: NUMBER: 12
READ: ATOM: UID
READ: ATOM: FETCH
READ: ATOM: 
51974,51973,51972,51971,51970,51969,51968,51967,51966,51965,51964,51963,51962,51961,51955,51954,51953,51837,51822,51646,51274,44651,44553,41244,41066,41060,41041,9381,9160
READ: LPAREN
READ: ATOM: ENVELOPE
READ: ATOM: FLAGS
READ: ATOM: RFC822.SIZE
READ: ATOM: BODY.PEEK
READ: LBRACKET
READ: ATOM: HEADER.FIELDS
READ: LPAREN
READ: ATOM: IMPORTANCE
READ: ATOM: LIST-POST
READ: ATOM: X-PRIORITY
READ: RPAREN
READ: RBRACKET
READ: RPAREN
READ: EOL
WRITE: * BYE [ALERT] Fatal error: Invalid argument
WRITE: 13 OK LOGIN Ok.
READ: NUMBER: 14
READ: ATOM: STATUS
READ: ATOM: INBOX
READ: LPAREN
READ: ATOM: UNSEEN
READ: RPAREN
READ: EOL
WRITE: * STATUS "INBOX" (UNSEEN 0)
14 OK STATUS Completed.
READ: NUMBER: 15
READ: ATOM: LOGOUT
READ: EOL
WRITE: * BYE Courier-IMAP server shutting down
15 OK LOGOUT completed

Can someone give me a hint how to solve that please?

regards
Martin

Saved Queries