View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
16130Bug reportsFile managerpublic2020-10-26 08:16
Reporterlukaswestholt Assigned ToLimeBot  
PrioritynoneSeveritypartial_block 
Status closedResolutionfixed 
Product Version4.1.16 
Summary16130: empty directory parameter on "LimeSurveyFileManager"
Description

Hello,

everytime i click on "filemanager" i get the error "Ein Fehler ist aufgetreten und die Dateiliste konnte nicht geladen werden: Error: Sie haben keine Berechtigung für diesen Ordner", it means translated "An error has occurred and the file list could not be loaded: Error: You have no permission to this folder".
I checked it in the error logs (console):
The function "LimeSurveyFileManager->getFileList($folder, $iSurveyId = null)" is getting fired without path: "LimeSurveyFileManager->getFileList('', NULL)".
I couldn't figure out why that was happening.
I could not find out if the problem only occurs with my installation or with others.
I am happy to help with further information.

Steps To Reproduce

Just go to "index.php/admin/filemanager".

Additional Information

Firefox Error Message:
FileManager
{…}
​data: {…}
​​error: {…}
​​​code: 500
​​​errorCode: 0
​​​file: "/mnt/web205/e0/99/58912799/htdocs/nez-tuebingen.de/survey/application/controllers/admin/LimeSurveyFileManager.php"
​​​line: 905
​​​message: "Sie haben keine Berechtigung für diesen Ordner"
​​​trace: "#0 /mnt/web205/e0/99/58912799/htdocs/nez-tuebingen.de/survey/application/controllers/admin/LimeSurveyFileManager.php(149): LimeSurveyFileManager->throwError()\n#1 [internal function]: LimeSurveyFileManager->getFileList('', NULL)\n#2 /mnt/web205/e0/99/58912799/htdocs/nez-tuebingen.de/survey/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(Object(LimeSurveyFileManager), Array)\n#3 /mnt/web205/e0/99/58912799/htdocs/nez-tuebingen.de/survey/application/core/Survey_Common_Action.php(86): CAction->runWithParamsInternal(Object(LimeSurveyFileManager), Object(ReflectionMethod), Array)\n#4 /mnt/web205/e0/99/58912799/htdocs/nez-tuebingen.de/survey/framework/web/CController.php(308): Survey_Common_Action->runWithParams(Array)\n#5 /mnt/web205/e0/99/58912799/htdocs/nez-tuebingen.de/survey/framework/web/CController.php(286): CController->runAction(Object(LimeSurveyFileManager))\n#6 /mnt/web205/e0/99/58912799/htdocs/nez-tuebingen.de/survey/framework/web/CController.php(265): CController->runActionWithFilters(Object(LimeSurveyFileManager), Array)\n#7 /mnt/web205/e0/99/58912799/htdocs/nez-tuebingen.de/survey/application/controllers/AdminController.php(172): CController->run('filemanager')\n#8 /mnt/web205/e0/99/58912799/htdocs/nez-tuebingen.de/survey/framework/web/CWebApplication.php(282): AdminController->run('filemanager')\n#9 /mnt/web205/e0/99/58912799/htdocs/nez-tuebingen.de/survey/framework/web/CWebApplication.php(141): CWebApplication->runController('admin/filemanag...')\n#10 /mnt/web205/e0/99/58912799/htdocs/nez-tuebingen.de/survey/framework/base/CApplication.php(185): CWebApplication->processRequest()\n#11 /mnt/web205/e0/99/58912799/htdocs/nez-tuebingen.de/survey/index.php(182): CApplication->run()\n#12 {main}"

Tagspermissions, upload files
Bug heat8
Complete LimeSurvey version number (& build)4.1.16 Build 200407
I will donate to the project if issue is resolvedNo
BrowserFirefox 75.0 (64-Bit)
Database type & versionmysql 5.5.52
Server OS (if known)
Webserver software & version (if known)
PHP Version7.3.16

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2020-10-13 19:24

developer   ~60183

Just go to "index.php/admin/filemanager".

Did it work with admin/filemanager?surveyid=XXXX and show the survey folder ?

lukaswestholt

lukaswestholt

2020-10-14 03:04

reporter   ~60185

yes there it works.

DenisChenu

DenisChenu

2020-10-14 09:48

developer   ~60192

Issue confirmed , fix is here : https://github.com/LimeSurvey/LimeSurvey/pull/1622

Can a LS Gmbh dev have a look ?

DenisChenu

DenisChenu

2020-10-14 09:48

developer   ~60193

File manager access link

DenisChenu

DenisChenu

2020-10-14 09:50

developer   ~60194

PS : this issue diodn't exist when whole systeml came back to 3.X version, but it still a quick fix :)

LimeBot

LimeBot

2020-10-19 19:45

administrator   ~60277

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

lime_release_bot

lime_release_bot

2020-10-26 08:16

administrator   ~60406

Fixed in Release 4.3.23+201026

Related Changesets

LimeSurvey: master b68f68f3

2020-10-19 19:42:41

eliasmagn


Committer: LimeBot Details Diff
Fixed issue 16130: empty directory parameter on "LimeSurveyFileManager"

Set default folder for
getFileList
could be fixed via url generation as well
Affected Issues
16130
mod - application/controllers/admin/LimeSurveyFileManager.php Diff File

Issue History

Date Modified Username Field Change
2020-04-13 07:17 lukaswestholt New Issue
2020-04-13 07:18 lukaswestholt Tag Attached: permissions
2020-04-13 07:18 lukaswestholt Tag Attached: upload files
2020-05-11 10:43 ollehar Category _ Unknown => File manager
2020-10-13 19:24 DenisChenu Note Added: 60183
2020-10-14 03:04 lukaswestholt Note Added: 60185
2020-10-14 09:48 DenisChenu Assigned To => cdorin
2020-10-14 09:48 DenisChenu Status new => confirmed
2020-10-14 09:48 DenisChenu Note Added: 60192
2020-10-14 09:48 DenisChenu Note Added: 60193
2020-10-14 09:48 DenisChenu File Added: Capture d’écran du 2020-10-14 09-45-39.png
2020-10-14 09:48 DenisChenu File Added: Capture d’écran du 2020-10-14 09-46-24.png
2020-10-14 09:50 DenisChenu Note Added: 60194
2020-10-19 19:45 LimeBot Changeset attached => LimeSurvey master b68f68f3
2020-10-19 19:45 LimeBot Note Added: 60277
2020-10-19 19:45 LimeBot Assigned To cdorin => LimeBot
2020-10-19 19:45 LimeBot Resolution open => fixed
2020-10-26 08:16 lime_release_bot Note Added: 60406
2020-10-26 08:16 lime_release_bot Status confirmed => closed