I am using SugarCE 6.2.4 on LAMP stack (PHP 5.3.8).
We have some emails archived in History subpanel in Opportunities tab (in Detail View). The problem is that when I click on the email link, the email is very slow to open. Especially if there is attachment in the email or email contains some East-Asia languages symbols.
For example, normally rendering of Opportunity DetailView takes 0.3 s, while opening of email takes tens of seconds, sometimes even 60 seconds script execution time is exceeded!
Even quite simple emails opening time is at least ten times longer than rendering of Opportunities DetailView. This is serious performance issue, I believe.
Here is example of the query that’s being executed for email opening:
SugarCRM Demos | Open Source Business & Social CRM - SugarCRM.
When 60 seconds execution time is exceeded, in php error log there is message:
PHP Fatal error: Maximum execution time of 60 seconds exceeded in sugarcrm\include\utils.php on line 1811.
Simple check shows that function xss_check_pattern() causes the trouble, which in turn uses PHP function preg_match_all(). preg_match_all() is probably not good when one needs to check large strings, I believe.
Is there any solution to this problem? If emails are already in the system, why they are checked every time when one tries to open them? Would it be better to check for xss only once, when they are archived?


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks