Relationship Graph

Relationship Graph
related to related to child of child of duplicate of duplicate of

View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
19067Bug reportsSurvey takingpublic2023-09-19 15:21
Reportergabrieljenik Assigned To 
PrioritynoneSeveritypartial_block 
Status confirmedResolutionreopened 
Product Version3.28.x 
Summary19067: Participant uploads fails if it contains resource with uppercase extension (LS3, LS5)
Description

If you upload a file named <whatever>.PNG the file is skipped-

Caught while reviewing 18911

Steps To Reproduce

Steps to reproduce

Create a survey with upload.
Set PNG on allwed file type (uppercase)
Take the survye upload a png file (lowercase)

Expected result

Allow upload

Actual result

Upload not allowed

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)LS 5.4.14 (build 221205), LS 3.28.54 (the PAAS version)
I will donate to the project if issue is resolvedNo
Browser
Database type & versionn/a
Server OS (if known)
Webserver software & version (if known)
PHP Versionn/a

Relationships

related to 18911 resolvedgabrieljenik import of theme fails if it contains resource with uppercase extension (LS3, LS5) 

Activities

DenisChenu

DenisChenu

2023-08-31 15:24

developer   ~76814

Strange : https://github.com/LimeSurvey/LimeSurvey/blob/43cefc3a2d829574cf788376bca2a844e2923dd5/application/controllers/UploaderController.php#L172 ?

Via JS ?

gabrieljenik

gabrieljenik

2023-08-31 15:27

manager   ~76815

what is done via JS?

DenisChenu

DenisChenu

2023-08-31 16:06

developer   ~76817

The control about name.

I'ms sure i have already sent PNG for png file in upload file.

gabrieljenik

gabrieljenik

2023-08-31 17:46

manager   ~76818

I'ms sure i have already sent PNG for png file in upload file.

Extension seems to be checked and lowercased here, as you said.
https://github.com/LimeSurvey/LimeSurvey/blob/43cefc3a2d829574cf788376bca2a844e2923dd5/application/controllers/UploaderController.php#L172

The control about name.

Not sure what you mean, sorry

DenisChenu

DenisChenu

2023-08-31 18:44

developer   ~76826

Extension seems to be checked and lowercased here, as you said.

But : you report here it don't work, right ?

Participant uploads fails if it contains resource with uppercase extension

DenisChenu

DenisChenu

2023-08-31 19:02

developer   ~76829

Last edited: 2023-08-31 19:03

I can not reproduce on 3.28.54

https://demo.sondages.me/87986

Peek 31-08-2023 19-02.gif (609,812 bytes)
gabrieljenik

gabrieljenik

2023-08-31 19:17

manager   ~76834

I was picking up the lead you left on the other PR.
I will just close this.

DenisChenu

DenisChenu

2023-08-31 19:19

developer   ~76835

I was picking up the lead you left on the other PR.

I jsut give an example of potential way to do. I never write there are an issue

gabrieljenik

gabrieljenik

2023-09-19 14:19

manager   ~77168

I could reproduce it

DenisChenu

DenisChenu

2023-09-19 15:21

developer   ~77169

I could reproduce it

What version ?

Issue History

Date Modified Username Field Change
2023-08-31 15:21 gabrieljenik New Issue
2023-08-31 15:21 gabrieljenik Issue generated from: 18911
2023-08-31 15:21 gabrieljenik Relationship added related to 18911
2023-08-31 15:21 gabrieljenik Assigned To => gabrieljenik
2023-08-31 15:21 gabrieljenik Status new => acknowledged
2023-08-31 15:22 gabrieljenik Description Updated
2023-08-31 15:24 DenisChenu Note Added: 76814
2023-08-31 15:24 DenisChenu Bug heat 0 => 2
2023-08-31 15:27 gabrieljenik Note Added: 76815
2023-08-31 15:27 gabrieljenik Bug heat 2 => 4
2023-08-31 16:06 DenisChenu Note Added: 76817
2023-08-31 17:46 gabrieljenik Note Added: 76818
2023-08-31 18:44 DenisChenu Note Added: 76826
2023-08-31 19:02 DenisChenu Note Added: 76829
2023-08-31 19:02 DenisChenu File Added: Peek 31-08-2023 19-02.gif
2023-08-31 19:03 DenisChenu Note Edited: 76829
2023-08-31 19:17 gabrieljenik Note Added: 76834
2023-08-31 19:17 gabrieljenik Status acknowledged => closed
2023-08-31 19:17 gabrieljenik Resolution open => unable to reproduce
2023-08-31 19:19 DenisChenu Status closed => feedback
2023-08-31 19:19 DenisChenu Resolution unable to reproduce => reopened
2023-08-31 19:19 DenisChenu Note Added: 76835
2023-08-31 19:19 DenisChenu Status feedback => closed
2023-09-19 14:18 gabrieljenik Description Updated
2023-09-19 14:19 gabrieljenik Assigned To gabrieljenik =>
2023-09-19 14:19 gabrieljenik Status closed => confirmed
2023-09-19 14:19 gabrieljenik Note Added: 77168
2023-09-19 15:21 DenisChenu Note Added: 77169