View Issue Details

This bug affects 1 person(s).
 10
IDProjectCategoryView StatusLast Update
18432Bug reportsFile managerpublic2022-11-10 13:43
Reportermichaelkonja59 Assigned Togabrieljenik  
PriorityhighSeverityfeature 
Status closedResolutionsuspended 
Product Version5.4.x 
Summary18432: Can't upload and view files with Hebrew names
Description

I am using Lime system on premise (installed on our local server).
However the problem existing in the online platform too: limesurvey.org.
When I am uploading Hebrew file name, the file name cut and I can see the extension with the dot only (no problem with English and numbers).

see example attached image.

We have forms in production with this problem

Steps To Reproduce
  1. Create question with "file upload"
  2. Run the survey
  3. Upload file name in Hebrew (see attach pdf file name in Hebrew)
  4. When uploading the file, you can see that the file name is missing and left only dot and extension.
  5. When pressing on the link of file name (missing the file name) from the responses menu, the file download with dot and extension only. I need to open the folder and to rename the file with name.
    The file is exist. However it's not suitable to students and of course not convenient if we have many files in form and many responses.
TagsNo tags attached.
Attached Files
error in files upload names.JPG (14,982 bytes)   
limesurvey_survey_418383.lss (44,865 bytes)   
בדיקה.pdf (211,079 bytes)
Bug heat10
Complete LimeSurvey version number (& build)Version 5.4.0+220913
I will donate to the project if issue is resolvedNo
BrowserFirebox and Chrome
Database type & versionmysqlnd 7.4.3
Server OS (if known)Linux Apache 2.0
Webserver software & version (if known)
PHP Version7.4.3

Relationships

related to 14091 closedc_schmitz Filenames of uploads starting with special characters truncated with invalid setlocale 

Users monitoring this issue

JanE01

Activities

ollehar

ollehar

2022-10-26 10:29

administrator   ~72430

Do you know if this worked in a previous version of LimeSurvey?

michaelkonja59

michaelkonja59

2022-10-26 11:41

reporter   ~72432

No, I am start working with LIME in the beginning of this year.

Please note that this problem exist also in the online platform: limesurvey.org
see attached survey created in limesurvey.org

Looking forward for solution in the near future.

Thanks
Michael

limesurvey_survey_621648.lss (25,447 bytes)   
c_schmitz

c_schmitz

2022-10-26 11:54

administrator   ~72433

The problem is the RTL file name. It does fail in sanitize_filename when trying to limit the file length to 255 chars.

michaelkonja59

michaelkonja59

2022-10-31 12:49

reporter   ~72479

Hi,
I have some survey in production and I need solution in the near future.

Is there any schedule to fix this issue?
If Not, can you advice who can help me ?

Thanks
Michael

ollehar

ollehar

2022-11-01 09:19

administrator   ~72502

If we don't have time to fix it in time for you, you could try to contact a partner at limesurvey.com and ask them to implement a fix for you.

gabrieljenik

gabrieljenik

2022-11-03 13:51

manager   ~72525

We can maybe take this from Wordpress.
https://developer.wordpress.org/reference/functions/sanitize_file_name/

Still considering the impact, not sure if a bugfix or something to be released on a bigger release.

michaelkonja59

michaelkonja59

2022-11-10 12:36

reporter   ~72696

We resolved the problem
in the file configuration "etc/apache2/envvars" we changed the parameter in field LANG from "C" to "en_US.UTF-8"
Thanks for all
Michael

conf.PNG (81,536 bytes)   
gabrieljenik

gabrieljenik

2022-11-10 13:43

manager   ~72697

As per the comments, will be closing the ticket.
Please add any comments in case it should be reopened.
Thanks

Issue History

Date Modified Username Field Change
2022-10-26 09:29 michaelkonja59 New Issue
2022-10-26 09:29 michaelkonja59 File Added: error in files upload names.JPG
2022-10-26 09:29 michaelkonja59 File Added: limesurvey_survey_418383.lss
2022-10-26 09:29 michaelkonja59 File Added: בדיקה.pdf
2022-10-26 10:01 DenisChenu Relationship added related to 14091
2022-10-26 10:29 ollehar Note Added: 72430
2022-10-26 10:29 ollehar Bug heat 0 => 2
2022-10-26 11:41 michaelkonja59 Note Added: 72432
2022-10-26 11:41 michaelkonja59 File Added: limesurvey_survey_621648.lss
2022-10-26 11:41 michaelkonja59 Bug heat 2 => 4
2022-10-26 11:43 ollehar Priority none => high
2022-10-26 11:43 ollehar Summary can't upload and view files with Hebrew names => Can't upload and view files with Hebrew names
2022-10-26 11:54 c_schmitz Note Added: 72433
2022-10-26 11:54 c_schmitz Bug heat 4 => 6
2022-10-27 14:28 gabrieljenik Status new => confirmed
2022-10-31 12:49 michaelkonja59 Note Added: 72479
2022-11-01 09:19 ollehar Note Added: 72502
2022-11-03 09:06 JanE01 Issue Monitored: JanE01
2022-11-03 09:06 JanE01 Bug heat 6 => 8
2022-11-03 13:51 gabrieljenik Note Added: 72525
2022-11-03 13:51 gabrieljenik Bug heat 8 => 10
2022-11-10 12:36 michaelkonja59 Note Added: 72696
2022-11-10 12:36 michaelkonja59 File Added: image.png
2022-11-10 12:36 michaelkonja59 File Added: conf.PNG
2022-11-10 12:37 michaelkonja59 File Deleted: image.png
2022-11-10 13:43 gabrieljenik Assigned To => gabrieljenik
2022-11-10 13:43 gabrieljenik Status confirmed => closed
2022-11-10 13:43 gabrieljenik Resolution open => suspended
2022-11-10 13:43 gabrieljenik Note Added: 72697