View Issue Details

This issue affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
18712Bug reportsSurvey editingpublic2026-10-31 13:19
Reporterritapas Assigned Toc_schmitz  
PrioritynoneSeverityminor 
Status resolvedResolutionfixed 
Product Version5.6.x 
Summary18712: unmanaged error when importing invalid lsg group file
Description

when importing invalid lsg group file (e.g. empy one) you get an unmanaged error

Steps To Reproduce

Steps to reproduce

open a survey goto import group
import invalid lsg file, e.g. an empty one

Expected result

managed error message

Actual result

unmanaged error message

TagsNo tags attached.
Attached Files
image.png (49,128 bytes)   
image.png (49,128 bytes)   
Bug heat6
Complete LimeSurvey version number (& build)5.6.13 demo 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
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2023-04-04 10:52

developer   ~74363

It's managed :)

But right : must not be a 500 error ;)

ritapas

ritapas

2023-04-04 11:32

reporter   ~74364

yes sorry

DenisChenu

DenisChenu

2023-04-04 15:15

developer   ~74369

just kidding ;)

ritapas

ritapas

2023-08-30 13:22

reporter   ~76785

of course the same happens with questions

image-2.png (17,635 bytes)   
image-2.png (17,635 bytes)   
c_schmitz

c_schmitz

2026-10-31 13:19

administrator   ~87041

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

Related Changesets

LimeSurvey: master 6ab97fcb

2026-10-31 13:18

c_schmitz


Details Diff
Fixed issue 18712: Importing an invalid question file showed an internal server error instead of an error message
Dev XMLImportQuestion() returns a fatalerror for unreadable or non-question files instead of throwing a CHttpException, parser warnings are suppressed as in the survey import (also for the group import)
Dev The uploaded file is now deleted when the question import fails, and the invalid group file message is translated
Affected Issues
18712
mod - application/controllers/QuestionAdministrationController.php Diff File
mod - application/helpers/admin/import_helper.php Diff File
mod - tests/unit/helpers/ImportTest.php Diff File

Issue History

Date Modified Username Field Change
2023-04-04 10:50 ritapas New Issue
2023-04-04 10:50 ritapas File Added: image.png
2023-04-04 10:52 DenisChenu Note Added: 74363
2023-04-04 10:52 DenisChenu Bug heat 0 => 2
2023-04-04 11:32 ritapas Note Added: 74364
2023-04-04 11:32 ritapas Bug heat 2 => 4
2023-04-04 15:15 DenisChenu Note Added: 74369
2023-08-30 13:22 ritapas Note Added: 76785
2023-08-30 13:22 ritapas File Added: image-2.png
2023-09-08 21:33 gabrieljenik Status new => confirmed
2026-10-31 13:19 c_schmitz Changeset attached => LimeSurvey master 6ab97fcb
2026-10-31 13:19 c_schmitz Note Added: 87041
2026-10-31 13:19 c_schmitz Assigned To => c_schmitz
2026-10-31 13:19 c_schmitz Status confirmed => resolved
2026-10-31 13:19 c_schmitz Resolution open => fixed
2026-10-31 13:19 c_schmitz Bug heat 4 => 6