Bug 93027 - FILEOPEN: Excel 2003 XML with invalid xml
Summary: FILEOPEN: Excel 2003 XML with invalid xml
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
5.0.0.5 release
Hardware: Other All
: lowest enhancement
Assignee: Kohei Yoshida
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: MSO-XML2003
  Show dependency treegraph
 
Reported: 2015-07-30 12:07 UTC by Kirill
Modified: 2019-08-15 13:24 UTC (History)
0 users

See Also:
Crash report or crash signature:
Regression By:


Attachments
File2 + Script (3.33 KB, application/x-7z-compressed)
2015-07-30 12:07 UTC, Kirill
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kirill 2015-07-30 12:07:12 UTC
Created attachment 117533 [details]
File2 + Script

File not opened, input-output error
File discharged from the program
If you treat it script, all right

In MSWord - all ok
Comment 1 Maxim Monastirsky 2015-07-30 12:52:17 UTC
This file has invalid xml:

$ xmllint File2.xls
File2.xls:1: parser error : CharRef: invalid decimal value
="2" ss:MergeDown="2" ss:StyleID="s5" ><Data ss:Type="String">Форма №&#10
                                                                               ^
File2.xls:1: parser error : xmlParseCharRef: invalid xmlChar value 0
="2" ss:MergeDown="2" ss:StyleID="s5" ><Data ss:Type="String">Форма №&#10
                                                                               ^
File2.xls:1: parser error : CharRef: invalid decimal value
ata ss:Type="String">Форма №&#10Утверждена приказом&#10
                                                                               ^
File2.xls:1: parser error : xmlParseCharRef: invalid xmlChar value 0
ata ss:Type="String">Форма №&#10Утверждена приказом&#10
                                                                               ^

Not sure whether we really want to support invalid xml files, even if Excel supports them. But given that we already have some similar bugs (put in 'See Also'), I'll leave this bug open for now.
Comment 2 Kohei Yoshida 2019-08-15 13:24:12 UTC
The file opens fine now using the master branch build with orcus 0.15.0.  I've added "support" for (technically invalid) XML with leading whitespaces.