View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
17620 | Bug reports | File manager | public | 2021-09-23 14:05 | 2022-07-27 15:21 |
Reporter | terryaulenbach | Assigned To | galads | ||
Priority | none | Severity | partial_block | ||
Status | assigned | Resolution | open | ||
Product Version | 3.25.20 | ||||
Summary | 17620: (v3.27.11) Following email link from response email, clicking on link to file causes CHttpException | ||||
Description | When you click on the individual response link in the notification email and then click on a link to a file, you get a CHttpException error. If you go to all responses and click on the download link for the particular submission, you do get the ZIP file. | ||||
Steps To Reproduce |
| ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 4 | ||||
Complete LimeSurvey version number (& build) | Version 3.27.11+210809 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | Firefox, Chrome, Edge, Opera | ||||
Database type & version | PostgreSQL 9.6.12 (win32) | ||||
Server OS (if known) | Windows Server 2012 R2 Standard Edition | ||||
Webserver software & version (if known) | Apache/2.4.46 | ||||
PHP Version | 7.3.18 | ||||
Hello, Are you trying to use the response link as superadmin or a user with the right permission? I cannot reproduce this error. |
|
It was reported by a "normal" user and I also get it as superadmin. |
|
I found the offending line in the code and what needs to be changed. Line 639 in application/controllers/admin/reponses.php (v3.27.11):
In Windows the slashes mess up the path when $sRealUserPath and $sDir get compared:
I had to change line 639 to:
As I was testing I also found that our DEV server is using v3.28.21 and that same line is different (realpath fixes everything except the trailing '/'):
I changed it to:
The file link now works in both versions. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2021-09-23 14:05 | terryaulenbach | New Issue | |
2021-09-23 14:05 | terryaulenbach | File Added: CHttpException.png | |
2021-09-27 11:24 | galads | Note Added: 66622 | |
2021-09-27 11:24 | galads | Bug heat | 0 => 2 |
2021-09-27 11:24 | galads | Assigned To | => galads |
2021-09-27 11:24 | galads | Status | new => feedback |
2021-09-27 16:21 | terryaulenbach | Note Added: 66626 | |
2021-09-27 16:21 | terryaulenbach | Bug heat | 2 => 4 |
2021-09-27 16:21 | terryaulenbach | Status | feedback => assigned |
2022-07-27 15:21 | terryaulenbach | Note Added: 71183 |