View Issue Details

This issue affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
09871Bug reportsComfortUpdatepublic2015-12-15 13:15
Reporteraesteban Assigned ToLouisGac 
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.06+ 
Summary09871: Admin console performs very slowly if no internet connection is available in server
Description

There is an automatic check of last build number in UpdateForm.php (function getUpdateInfo). LimeSurvey tries to connect to ComfortUpdate server if this conditions are satisfied:

1.- php-curl is loaded (see function _performRequest)
2.- buildnumber config param is not empty in config/version.php (see getUpdateInfo). This makes impossible to reproduce the issue in any clone of github repo.

If these conditions are satisfied, and the server has no internet connection (for example no proxy configured) the call to curl_exec (see _performRequest) silently results in a failed connection. Since no timeout is configured, the application gets stuck for a long time.

Steps To Reproduce

1.- Make sure php-curl is installed
2.- Make sure buildnumber is set in version.php
3.- Make sure connecting to internet is impossible (firewall rules, remove proxy configuration, etc)
4.- Enter admin console

Result: Response of LimeSurvey is very slow

Additional Information

I suggest:

  • Disabling ComfortUpdate should be possible from a configuration file and/or GUI to prevent any connection attempt.
  • Curl timeout could be checked or set before curl_exec call
  • If timeout passed, a warning message could be showed
  • Last revision check connecting to ComfortUpdate should not be performed too many times (for example, every time survey list is refreshed)
TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)15c0eee56711d5b67c6d2811a472
I will donate to the project if issue is resolvedNo
BrowserNA
Database type & versionNA
Server OS (if known)NA
Webserver software & version (if known)NA
PHP Version5.5

Users monitoring this issue

There are no users monitoring this issue.

Activities

aesteban

aesteban

2015-09-07 15:24

developer   ~33066

Assigned by mistake

DenisChenu

DenisChenu

2015-09-07 15:58

developer   ~33067

Assigned after reading IRC ls dev log ;)

c_schmitz

c_schmitz

2015-12-15 13:15

administrator   ~33937

2.06+ Build 151215 released

Issue History

Date Modified Username Field Change
2015-09-07 15:23 aesteban New Issue
2015-09-07 15:23 aesteban Status new => assigned
2015-09-07 15:23 aesteban Assigned To => c_schmitz
2015-09-07 15:24 aesteban Assigned To c_schmitz =>
2015-09-07 15:24 aesteban Note Added: 33066
2015-09-07 15:24 aesteban Assigned To => aesteban
2015-09-07 15:24 aesteban Status assigned => new
2015-09-07 15:28 aesteban Status new => assigned
2015-09-07 15:28 aesteban Summary Admin console performs very slowly if no internet connection is available => Admin console performs very slowly if no internet connection is available in server
2015-09-07 15:28 aesteban Assigned To aesteban =>
2015-09-07 15:28 aesteban Status assigned => new
2015-09-07 15:58 DenisChenu Assigned To => LouisGac
2015-09-07 15:58 DenisChenu Status new => assigned
2015-09-07 15:58 DenisChenu Note Added: 33067
2015-12-09 15:58 LouisGac Status assigned => resolved
2015-12-09 15:58 LouisGac Resolution open => fixed
2015-12-15 13:15 c_schmitz Note Added: 33937
2015-12-15 13:15 c_schmitz Status resolved => closed