Opened 2 years ago

Closed 2 years ago

#1487144 closed Bugs (fixed)

Server Error! (OK) on big AJAX response in Firefox

Reported by: patrick Owned by:
Priority: 5 Milestone: 0.6-beta
Component: Core functionality Version: git-master
Severity: major Keywords:
Cc: b.c.aasgaard@…

Description

I have a mailbox that contains 2354 messages from a mailing list. When I try to open it with Roundcube (SVN r4273), after a short time, I get "Server Error! (OK)", and the list pane stays empty.

I enabled IMAP debug ($rcmail_config['imap_debug'] = true;), but can't see anything wrong there. I'm attaching the imap debug log (nearly 1 MB after unpacking). Opening the mailbox with other MUAs (KMail, Thunderbird) works just fine.

What else can I do to help fixing this?

Attachments (1)

imap.bz2 (56.6 KB) - added by patrick 2 years ago.

Download all attachments as: .zip

Change History (16)

Changed 2 years ago by patrick

comment:1 Changed 2 years ago by bca

  • Cc b.c.aasgaard@… added

comment:2 follow-up: Changed 2 years ago by alec

  • Milestone changed from later to 0.5-beta

Enable browser's console and check what is returned by server to the browser. Did you test with different browsers? There was similiar issue with IE when response contains "strange" characters, but this shouldn't happen anymore.

comment:3 in reply to: ↑ 2 Changed 2 years ago by patrick

Replying to alec:
Interesting. It works without a problem in Chromium (9.0.587.0). I got the error in Firefox (3.6.12). The error console of Firefox doesn't show anything interesting - only a couple of warnings about unknown CSS properties, and this:

Warning: Unexpected token in attribute selector: '!'.
Source File: https://patrick-nagel.net/roundcube/?_task=mail&_mbox=Lists.Wave
Line: 0

(but this I also get for the Inbox, which opens without a problem):

Warning: Unexpected token in attribute selector: '!'.
Source File: https://patrick-nagel.net/roundcube/
Line: 0

comment:4 follow-up: Changed 2 years ago by alec

This is just a warning (from jquery). I was talking about a Firebug console to check server response for ajax request. You can also set debug_level=9 to enable built-in console.

comment:5 in reply to: ↑ 4 Changed 2 years ago by patrick

Replying to alec:

I was talking about a Firebug console to check server response for ajax request. You can also set debug_level=9 to enable built-in console.

Ok, I didn't get that.
The built-in console didn't bring up anything useful. Firebug had this:

{{{script stack space quota is exhausted
Line 31}}}
(jquery-1.4.min.js)

I'm not very familiar with this kind of debugging - if you tell me exact steps on how to obtain more useful information, I'll do that. Alternatively, I can try to set up an account on that server, with that mailbox copied over, so that you can debug yourself, if you want.

comment:6 follow-up: Changed 2 years ago by alec

This error (?) message is interesting. Do a test with smaller pagesize (what pagesize are you using now?). Also you could try with older version of jquery.

comment:7 Changed 2 years ago by alec

This is more likely a Firefox+jQuery issue e.g. reported here http://forum.jquery.com/topic/validating-json-unnecessarily-is-killing-firefox

comment:8 in reply to: ↑ 6 Changed 2 years ago by patrick

Replying to alec:

This error (?) message is interesting. Do a test with smaller pagesize (what pagesize are you using now?).

I was using a page size of 200 rows. When I set it to 182 rows, there is no error, but with 183, the error is back. Due to threading, there are actually many more rows (when expanding the threads) than the number of rows set in the prefs. So, as a workaround, I'll halve my pagesize.

comment:9 follow-up: Changed 2 years ago by alec

I've found that the limit is c.a. 1000 messages.

comment:10 in reply to: ↑ 9 Changed 2 years ago by patrick

Replying to alec:
Well, that's easily reached in mailing list mailboxes with threaded view. For example, in my Lists.Wave mailbox, the last 200 threads amount to 1493 mails.

I didn't really understand what the exact problem with Firefox and jQuery was... has it been fixed, or can/will it be fixed? When will Roundcube users profit from the fix?

comment:11 Changed 2 years ago by alec

We need to wait for jQuery or FF developers. jQuery uses some regular expression to parse (check) ajax response. When the result is big it reaches FF limit of stack size for such operations.

comment:12 Changed 2 years ago by alec

  • Summary changed from Server Error! (OK) when opening mailbox to Server Error! (OK) on big AJAX response in Firefox

Still not fixed in jQuery. The limit has been increased greatly in FF4.

comment:13 Changed 2 years ago by alec

Finally patch has been applied into jQuery repository. We must wait for 1.6.

comment:14 Changed 2 years ago by phs

As Alec already mentioned, this problem is fixed in jQuery 1.6 (see jQuery ticket http://bugs.jquery.com/ticket/7587 ).

Therefore this ticket would be resolved by updating Roundcube to jQuery 1.6.

comment:15 Changed 2 years ago by alec

  • Resolution set to fixed
  • Status changed from new to closed

Update jQuery in [79275b4d].

Note: See TracTickets for help on using tickets.