View Issue Details

IDProjectCategoryView StatusLast Update
16036Bug reportsComfortUpdatepublic2020-03-27 10:54
ReporterJmantysalo Assigned To 
PrioritynoneSeveritytweak 
Status acknowledgedResolutionopen 
Product Version4.1.11 
Summary16036: Add check for SELinux in ComfortUpdate
Description

It would be nice if the system could warn about SELinux forbidding ComfortUpdate. Currently _updatesavailable_error.php contains

    case 'no_server_answer':
        . . .
        $sMessage = gT("It seems that the ComfortUpdate server is not responding. Please try again in few minutes or contact the LimeSurvey team.");

and it could be something like

    case 'no_server_answer':
        . . .
        $check_selinux = array();
        $res = 0;
        exec("getsebool httpd_can_network_connect", $check_selinux, $res);
        if ($res == 0 and explode(" ", $check_selinux[0])[2] == "off")
            $sMessage = gT("It seems that the ComfortUpdate server is not responding, propably because of SELinux restrict connections.");
        else
            $sMessage = gT("It seems that the ComfortUpdate server is not responding. Please try again in few minutes or contact the LimeSurvey team.");
Steps To Reproduce

Install LimeSurvey to RHEL 8. Try ComfortUpdate.

TagsNo tags attached.
Complete LimeSurvey version number (& build)Version 4.1.11+200316
I will donate to the project if issue is resolvedNo
Browser
Database & DB-VersionN/A
Server OS (if known)Linux, RHEL 8
Webserver software & version (if known)Apache
PHP VersionN/A

Activities

Jmantysalo

Jmantysalo

2020-03-25 08:14

reporter   ~56758

...or maybe this could be checked in the installation precheck phase?

Issue History

Date Modified Username Field Change
2020-03-25 08:01 Jmantysalo New Issue
2020-03-25 08:14 Jmantysalo Note Added: 56758
2020-03-27 10:54 cdorin Status new => acknowledged