View Issue Details

This bug affects 1 person(s).
 0
IDProjectCategoryView StatusLast Update
13411Feature requestsImport/Exportpublic2018-02-23 10:36
ReporterDenisChenu Assigned ToDenisChenu  
PrioritynoneSeverityfeature 
Status assignedResolutionopen 
Summary13411: Show xml error when import
Description

When import a bad XML we have only 'It's a bad XML or not a LimeSurvey xml'
I think it can be great if we can return XML errors in list

Additional Information

I already have the patch idea :
libxml_use_internal_errors(false);
$xml = simplexml_load_string($sXMLdata, 'SimpleXMLElement', LIBXML_NONET);
if($xml!==false) {
foreach(libxml_get_error) …
return $results;
}
if($xml->LimeSurveyDocType != 'Survey') {
$results['error'] = gT("This is not a LimeSurvey survey structure XML file.");
return $results
}

But io wait for merge master in develop since we don't add new feature in master

TagsNo tags attached.
Bug heat0
Story point estimate
Users affected %

Users monitoring this issue

There are no users monitoring this issue.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2018-02-23 10:36 DenisChenu New Issue
2018-02-23 10:36 DenisChenu Status new => assigned
2018-02-23 10:36 DenisChenu Assigned To => DenisChenu
2018-02-23 10:36 DenisChenu Additional Information Updated