View Issue Details

This bug affects 1 person(s).
 10
IDProjectCategoryView StatusLast Update
15331Bug reportsSurvey takingpublic2021-03-22 18:04
ReporterMazi Assigned Toollehar  
PrioritylowSeverityblock 
Status closedResolutionunable to reproduce 
Product Version3.17.x 
Summary15331: Uploading PDF at survey taking leads to "File extension can't be checked" error
Description

I am testing uploading a PDF file at a file upload question. It works fine at system A with
Limesurvey Version 3.18.0+190923
PHP 7.3.5
Apache 2
Ubuntu TLS 14

Using the same survey and same PDF with the same LS version fails though. These are the details:
PHP 7.1.10
Apache 2
Windows Server 2012 Standard Edition) AMD64

Steps To Reproduce

Import the attached survey
Go to group "Datei-Upload "
Go to question "upload" and use question preview.
Try uploading the attached test PDF with phpinfo details.

Additional Information

Could it be related to the PHP version used?

TagsNo tags attached.
Attached Files
failing_upload.png (38,681 bytes)   
failing_upload.png (38,681 bytes)   
phpinfo_working_system.pdf (1,550,049 bytes)
phpinfo_failing_system.pdf (1,212,018 bytes)
Bug heat10
Complete LimeSurvey version number (& build)Version 3.18.0+190923
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMySQL
Server OS (if known)Windows Server 2012 Standard Edition) AMD64
Webserver software & version (if known)Apache 2
PHP Version7.1.10

Relationships

related to 15507 closedollehar Cannot upload file (Note: LS 3.19.3 ) 

Users monitoring this issue

There are no users monitoring this issue.

Activities

Mazi

Mazi

2019-09-26 10:25

updater   ~53716

@cdorin, this is a rather urgent issue since they want to use the file upload question at a survey starting next week. Can you look into this?

cdorin

cdorin

2019-09-26 10:32

reporter   ~53717

@Mazi, could you check the permissions? Upload folder should be writable by the webserver (known issue by Markus from customers)

Mazi

Mazi

2019-09-26 11:00

updater   ~53718

@cdorin, good catch. I am not able to upload an image and add it to the question text, so it could be a permission issue causing a misleading error message,

cdorin

cdorin

2019-09-26 11:08

reporter   ~53719

Conclusion: Windows Server is nasty :)

Mazi

Mazi

2019-10-30 18:55

updater   ~54282

@cdorin, a short update that this was NOT solved by adjusting permissions at server level. That only fixed the issue of not being able to add images e.g. to the question text.

At the mentioned system the file upload question still fails with the latest 3.19.3 version with the error above. The same version works fine at other servers.
@c_schmitz: My guess is that it is related to the PHP version. Is it possible that the recently extended file type extension checks fail with older PHP versions?

Is there any chance someone can test the file upload question with PHP 7.1.x and the latest Limesurvey version? Maybe even at a Windows server?

@DenisChenu, did you ever face such an issue at any customer system?

DenisChenu

DenisChenu

2019-10-30 19:21

developer   ~54284

Strange …

  1. User seems to have a valid fileinfo : diablecheck is not set : https://github.com/LimeSurvey/LimeSurvey/blob/1fa5dd4794bab115bd04172258b42e06f123f1dd/application/controllers/UploaderController.php#L187

But his mime seems outdated

See manual : https://manual.limesurvey.org/Optional_settings#Upload_files
Maybe with mime from : https://sourceforge.net/projects/gnuwin32/files/file/5.03/file-5.03-bin.zip/download

See : https://www.php.net/manual/en/function.finfo-open.php#107383

Mazi

Mazi

2019-11-04 09:55

updater   ~54382

@cdorin, I deleted the attached file since the problem can be reproduced with any file upload question.

Can you please set this ticket to PUBLIC? Again, I am not allowed to do that so sorry for wasting your time.

ollehar

ollehar

2021-02-11 18:50

administrator   ~62185

Please check if this bug still exists in the latest patch release. Thank you.

c_schmitz

c_schmitz

2021-03-22 09:03

administrator   ~63510

Hello Mazi,

we have asked for feedback on this issue. Because we did not get an answer we assume that the issue is resolved.
However, should you be able to reproduce the issue using the latest version, please feel free to re-open the issue and give us exact details on how to reproduce it.

Thank you and best regards,

c_schmitz

Mazi

Mazi

2021-03-22 18:04

updater   ~63556

@c_schmitz / @ollehar: This issue was reported about 1.5 years ago. I do not have access to that system anymore so I can't test. Please test yourself.

Issue History

Date Modified Username Field Change
2019-09-26 10:25 Mazi New Issue
2019-09-26 10:25 Mazi File Added: failing_upload.png
2019-09-26 10:25 Mazi File Added: phpinfo_working_system.pdf
2019-09-26 10:25 Mazi File Added: phpinfo_failing_system.pdf
2019-09-26 10:25 Mazi File Added: limesurvey_survey_287777.lss
2019-09-26 10:25 Mazi Note Added: 53716
2019-09-26 10:27 Mazi Description Updated
2019-09-26 10:27 Mazi Steps to Reproduce Updated
2019-09-26 10:27 Mazi Additional Information Updated
2019-09-26 10:32 cdorin Note Added: 53717
2019-09-26 11:00 Mazi Note Added: 53718
2019-09-26 11:08 cdorin Note Added: 53719
2019-09-26 11:09 cdorin Assigned To => cdorin
2019-09-26 11:09 cdorin Status new => feedback
2019-10-30 18:55 Mazi Note Added: 54282
2019-10-30 18:55 Mazi Status feedback => assigned
2019-10-30 19:21 DenisChenu Note Added: 54284
2019-11-01 09:13 Mazi Relationship added related to 15507
2019-11-04 09:54 Mazi File Deleted: limesurvey_survey_287777.lss
2019-11-04 09:55 Mazi Note Added: 54382
2021-02-08 10:08 cdorin Assigned To cdorin =>
2021-02-08 10:08 cdorin Priority none => low
2021-02-08 10:08 cdorin Status assigned => acknowledged
2021-02-11 18:50 ollehar View Status private => public
2021-02-11 18:50 ollehar Assigned To => ollehar
2021-02-11 18:50 ollehar Status acknowledged => feedback
2021-02-11 18:50 ollehar Note Added: 62185
2021-02-11 18:50 ollehar Severity crash => block
2021-03-22 09:03 c_schmitz Note Added: 63510
2021-03-22 09:03 c_schmitz Status feedback => closed
2021-03-22 09:03 c_schmitz Resolution open => unable to reproduce
2021-03-22 18:04 Mazi Note Added: 63556