Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebMail hang on a letter with large "From:" #3985

Closed
rcubetrac opened this issue Nov 2, 2012 · 9 comments
Closed

WebMail hang on a letter with large "From:" #3985

rcubetrac opened this issue Nov 2, 2012 · 9 comments

Comments

@rcubetrac
Copy link

Reported by gsa on 2 Nov 2012 14:03 UTC as Trac ticket #1488785

Today some users with switched off spam checks received mails with brokek headers:
[cut]

Very large "From:" , when they try to enter interface - it hang on loading mails.

Try all version - problem exist in every one.

Migrated-From: http://trac.roundcube.net/ticket/1488785

@rcubetrac
Copy link
Author

Comment by @alecpl on 3 Nov 2012 19:09 UTC

Please, add sample mail as attachment to the ticket. What means it hangs? Javascript error in browser (what browser?) or some errors in Roundcube logs (time exec limit or sth)? Did you try with 0.8?

@rcubetrac
Copy link
Author

Milestone changed by @alecpl on 3 Nov 2012 19:09 UTC

later => 0.9-beta

@rcubetrac
Copy link
Author

Comment by gsa on 5 Nov 2012 09:40 UTC

It take about 2 minutes to open imap mailbox with one letter like in example. IE or mozzila - show "Loading", and open mail after 1.5-2 minutes. Also php process take 100% cpu at this time on a web server.

@rcubetrac
Copy link
Author

Comment by KORG on 5 Nov 2012 09:43 UTC

I can confirm this bug in stable version 0.7.3

"Hangs" - means roundcube web interface doesn't load inbox messages list (messages list is blank). Roundcube 0.8.2 also buggy.

I can reproduce this bug in:

Firefox 16.0.2
Opera 12.02

@rcubetrac
Copy link
Author

Comment by @alecpl on 5 Nov 2012 11:47 UTC

I copied both mails into my inbox and have no problem with listing messages or displaying them. Enable imap_debug to check what (and how fast) is messages list returned from IMAP server to Roundcube. Also you could try to debug ajax request response in browser. Describe your server environment, what IMAP server, PHP, OS (versions)?

@rcubetrac
Copy link
Author

Comment by KORG on 5 Nov 2012 11:47 UTC

Some sql queries, when i try to reproduce this problem:

[12:12:22 +0200](05-Nov-2012): Successful login for EMAIL (ID: NUMBER) from IP in session XXX


[12:16:18 +0200](05-Nov-2012): query(1): SELECT vars, ip, changed FROM session WHERE sess_id = 'XXX';
[12:16:18 +0200](05-Nov-2012): query(1): SELECT * FROM users WHERE user_id = 'ID';
[12:16:18 +0200](05-Nov-2012): query(1): DELETE FROM session WHERE sess_id = 'XXX;
[12:16:18 +0200](05-Nov-2012): query(1): INSERT INTO session (sess_id, vars, ip, created, changed) VALUES ('XXX', 'XXX', 'IP', '2012-11-05 12:16:18', '2012-11-05 12:16:18')


[12:16:25 +0200](05-Nov-2012): query(1): SELECT vars, ip, changed FROM session WHERE sess_id = 'XXX';

[12:16:25 +0200](05-Nov-2012): query(1): UPDATE session SET vars='bGFuZ3VhZ2V8czo1OiJlbl9VUyI7dGVtcHxiOjE7aW1hcF9uYW1lc3BhY2V8YTo0OntzOjg6InBlcnNvbmFsIjthOjE6e2k6MDthOjI6e2k6MDtzOjY6IklOQk9YLiI7aToxO3M6MToiLiI7fX1zOjU6Im90aGVyIjtOO3M6Njoic2hhcmVkIjtOO3M6NjoicHJlZml4IjtzOjY6IklOQk9YLiI7fWltYXBfZGVsaW1pdGVyfHM6MToiLiI7dXNlcl9pZHxzOjU6IjUwNzcwIjt1c2VybmFtZXxzOjIyOiJ0ZXN0QG1hZHNhbml0eS5raWV2LnVhIjtpbWFwX2hvc3R8czoxNjoibXgxLm1pcm9ob3N0Lm5ldCI7aW1hcF9wb3J0fGk6MTQzO2ltYXBfc3NsfE47cGFzc3dvcmR8czozMjoiOTIyenZ0S3NMZ2FSWllWUmlnMXVXejJybDV4M0QwMzMiO2xvZ2luX3RpbWV8aToxMzUyMTEwMzQyO3Rhc2t8czo0OiJtYWlsIjttYm94fHM6NToiSU5CT1giO3NvcnRfY29sfHM6NDoiZGF0ZSI7c29ydF9vcmRlcnxzOjQ6IkRFU0MiO3F1b3RhX2Rpc3BsYXl8czo1OiJpbWFnZSI7bGlzdF9hdHRyaWJ8YTo2OntzOjQ6Im5hbWUiO3M6ODoibWVzc2FnZXMiO3M6MjoiaWQiO3M6MTE6Im1lc3NhZ2VsaXN0IjtzOjExOiJjZWxsc3BhY2luZyI7czoxOiIwIjtzOjc6ImNvbHVtbnMiO2E6ODp7aTowO3M6NzoidGhyZWFkcyI7aToxO3M6Nzoic3ViamVjdCI7aToyO3M6Njoic3RhdHVzIjtpOjM7czo0OiJmcm9tIjtpOjQ7czo0OiJkYXRlIjtpOjU7czo0OiJzaXplIjtpOjY7czo0OiJmbGFnIjtpOjc7czoxMDoiYXR0YWNobWVudCI7fXM6Nzoic3VtbWFyeSI7czoxMjoiTWVzc2FnZSBsaXN0IjtzOjE1OiJvcHRpb25zbWVudWljb24iO3M6NDoidHJ1ZSI7fXNraW5fcGF0aHxzOjE0OiJza2lucy9taXJvaG9zdCI7Zm9sZGVyc3xhOjE6e3M6NToiSU5CT1giO2E6Mjp7czozOiJjbnQiO2k6MTtzOjY6Im1heHVpZCI7aTo3O319dW5zZWVuX2NvdW50fGE6MTp7czo1OiJJTkJPWCI7aTowO30=', changed='2012-11-05 12:16:25' WHERE sess_id='XXX';

@rcubetrac
Copy link
Author

Comment by KORG on 5 Nov 2012 11:51 UTC

Dovecot 2.0.11

php:

PHP 5.3.3-7+squeeze14 with Suhosin-Patch (cli) (built: Aug 6 2012 20:08:59)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with XCache v1.3.0, Copyright (c) 2005-2009, by mOo
with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH

Debian 6.0.6

Linux 2.6.32-5-686 #1 SMP i686 GNU/Linux

@rcubetrac
Copy link
Author

Comment by KORG on 5 Nov 2012 17:09 UTC

Problem solved, not a bug.

After we disable php idn module (extension=idn.so) all works great!

@rcubetrac
Copy link
Author

Status changed by @alecpl on 5 Nov 2012 17:18 UTC

new => closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant