View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
17922Bug reportsComfortUpdatepublic2022-03-14 11:35
Reporterbaltzis Assigned Toc_schmitz  
PrioritynoneSeveritycrash 
Status closedResolutionfixed 
Product Version5.x 
Summary17922: ComfortUpdate deleted essential files
Description

ComfortUpdate deleted essential files in the \application\controllers\ directory. As a result, initially, the whole installation became inaccessible. By adding some of the deleted files from another installation (e.g., \application\controllers\admin\Authentication.php), the system became accessible, however "Configuration\Global" and "Configuration\Global survey" menu options produce the following error:

500: Internal server error
Alias "application\controllers\admin\globalsettings" is invalid. Make sure it points to an existing PHP file and the file is readable.

The same problem persists with the update to version 5.3.1.

Steps To Reproduce

Steps to reproduce

On a Windows server installation (see below for version etc.) use ComfortUpdate to update to 5.3.0

Expected result

Update to 5.3.0 from the previous version.

Actual result

Several files are deleted from the "\application\controllers\" directory and the installation becomes inaccessible (at least for administration). The issue remains with the latest update to 5.3.1.

TagsNo tags attached.
Bug heat8
Complete LimeSurvey version number (& build)Version 5.3.1+220301
I will donate to the project if issue is resolvedNo
BrowserChrome, Edge
Database type & versionmysql, mysqlnd 5.0.12-dev - 20150407 - $Id: 38fea24f2847fa7519001be390c98ae0acafe387 $
Server OS (if known)Windows NT WIN-A34LDHDT6H4 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
Webserver software & version (if known)Microsoft-IIS/8.5
PHP Version 7.2.7

Users monitoring this issue

There are no users monitoring this issue.

Activities

ollehar

ollehar

2022-03-02 10:52

administrator   ~68491

File should not be deleted but moved - they have been renamed. Strange that Authentication.php was gone for you.

For the globalsettings problem, we'll have to test on a Windows machine in the office.

ollehar

ollehar

2022-03-02 10:54

administrator   ~68492

Can you list us your current content in application/controllers/ folder?

ollehar

ollehar

2022-03-02 11:33

administrator   ~68497

While you wait for a fix, you can manually download the latest version of unzip it.

https://community.limesurvey.org/downloads/

The problem is related to case sensitivity in file names on Windows vs Linux.

baltzis

baltzis

2022-03-02 11:40

reporter   ~68498

Sure, here it is:

\application\controllers\
<DIR> admin
<DIR> survey
AdminController.php
AssessmentController.php
HomepageSettingsController.php
index.html
InstallerController.php
LimereplacementfieldsController.php
LSBaseController.php
OptinController.php
OptoutController.php
PluginsController.php
PrintanswersController.php
QuestionAdministrationController.php
QuestionGroupsAdministrationController.php
RegisterController.php
ResponsesController.php
StatisticsUserController.php
SurveyAdministrationController.php
SurveyController.php
SurveysController.php
SurveysGroupsPermissionController.php
ThemeOptionsController.php
UploaderController.php
UserGroupController.php
UserManagementController.php
UserRoleController.php
VerificationController.php

\application\controllers\admin\
Authentication.php
CheckIntegrity.php
ConditionsAction.php
Database.php
DatabaseUpdate.php
DataEntry.php
dumpdb.php
EmailTemplates.php
Export.php
Expressions.php
ExpressionValidate.php
HtmlEditorPop.php
index.html
index.php
Labels.php
NotificationController.php
ParticipantsAction.php
PluginHelper.php
PluginManagerController.php
PrintableSurvey.php
QuestionThemes.php
Quotas.php
RemoteControl.php
Saved.php
Statistics.php
SurveymenuController.php
SurveymenuEntryController.php
SurveyPermission.php
SurveysGroupsController.php
Themes.php
Tokens.php
Translate.php
TutorialEntryController.php
TutorialsController.php
Update.php
UserAction.php

\application\controllers\survey\
index.php

c_schmitz

c_schmitz

2022-03-02 11:50

administrator   ~68500

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&amp;id=33304

baltzis

baltzis

2022-03-02 11:55

reporter   ~68501

Thank you so much for the tip! I unzipped and added the globalsetting.php file to the \application\controllers\admin\ directory and the problem is solved. Everything seems to be normal now (except for issue 17811 which remains unresolved).

c_schmitz

c_schmitz

2022-03-02 12:47

administrator   ~68516

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&amp;id=33306

c_schmitz

c_schmitz

2022-03-02 14:18

administrator   ~68518

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&amp;id=33307

c_schmitz

c_schmitz

2022-03-08 16:12

administrator   ~68595

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&amp;id=33339

LimeBot

LimeBot

2022-03-14 11:35

administrator   ~68656

Fixed in Release 5.3.5+220314

Related Changesets

LimeSurvey: master f101336c

2022-03-02 11:42:29

c_schmitz

Details Diff
Fixed issue 17922: ComfortUpdate deletes essential files Affected Issues
17922
mod - application/controllers/admin/Update.php Diff File

LimeSurvey: master d6f38254

2022-03-02 12:47:50

c_schmitz

Details Diff
Fixed issue 17922: ComfortUpdate deletes essential files Affected Issues
17922
mod - application/config/updater_version.php Diff File

LimeSurvey: master 7e9e35c1

2022-03-02 14:18:11

c_schmitz

Details Diff
Fixed issue 17922: ComfortUpdate deletes essential files Affected Issues
17922
mod - application/controllers/admin/Update.php Diff File

LimeSurvey: master 8c96fd9b

2022-03-08 16:12:26

c_schmitz

Details Diff
Fixed issue 17922: ComfortUpdate deletes essential files
Dev Fixed order of including the libraries
Affected Issues
17922
mod - application/controllers/admin/Update.php Diff File

Issue History

Date Modified Username Field Change
2022-03-02 08:50 baltzis New Issue
2022-03-02 10:48 galads Assigned To => ollehar
2022-03-02 10:48 galads Status new => assigned
2022-03-02 10:52 ollehar Note Added: 68491
2022-03-02 10:52 ollehar Bug heat 0 => 2
2022-03-02 10:54 ollehar Note Added: 68492
2022-03-02 11:33 ollehar Note Added: 68497
2022-03-02 11:40 baltzis Note Added: 68498
2022-03-02 11:40 baltzis Bug heat 2 => 4
2022-03-02 11:50 c_schmitz Changeset attached => LimeSurvey master f101336c
2022-03-02 11:50 c_schmitz Note Added: 68500
2022-03-02 11:50 c_schmitz Bug heat 4 => 6
2022-03-02 11:50 c_schmitz Assigned To ollehar => c_schmitz
2022-03-02 11:50 c_schmitz Resolution open => fixed
2022-03-02 11:55 baltzis Note Added: 68501
2022-03-02 12:16 c_schmitz Status assigned => resolved
2022-03-02 12:47 c_schmitz Changeset attached => LimeSurvey master d6f38254
2022-03-02 12:47 c_schmitz Note Added: 68516
2022-03-02 14:18 c_schmitz Changeset attached => LimeSurvey master 7e9e35c1
2022-03-02 14:18 c_schmitz Note Added: 68518
2022-03-08 16:12 c_schmitz Changeset attached => LimeSurvey master 8c96fd9b
2022-03-08 16:12 c_schmitz Note Added: 68595
2022-03-14 11:35 LimeBot Note Added: 68656
2022-03-14 11:35 LimeBot Status resolved => closed
2022-03-14 11:35 LimeBot Bug heat 6 => 8