Bug 92210 - Flat XML files without XML declaration cannot be opened
Summary: Flat XML files without XML declaration cannot be opened
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
(earliest affected)
3.5.0 release
Hardware: Other All
: medium minor
Assignee: Not Assigned
Depends on:
Blocks: ODF-Flat
  Show dependency treegraph
Reported: 2015-06-20 11:46 UTC by Urmas
Modified: 2023-08-11 06:36 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:

Sample (24.15 KB, application/vnd.oasis.opendocument.graphics)
2015-06-20 11:46 UTC, Urmas
console logs (43.45 KB, text/plain)
2015-06-21 08:55 UTC, Julien Nabet

Note You need to log in before you can comment on or make changes to this bug.
Description Urmas 2015-06-20 11:46:37 UTC
Created attachment 116678 [details]

Comment 1 Julien Nabet 2015-06-21 08:55:15 UTC
Created attachment 116700 [details]
console logs

On pc Debian x86-64 with master sources updated today, here are the console logs when I tried to open fodg file.
Comment 2 Maxim Monastirsky 2015-06-21 12:23:37 UTC
This is a known limitation. Currently the detection of such files is very primitive, as it just searches some string in the first 4000 bytes (or 8000 for UTF-16). So to avoid false positives, we initially reject any file that doesn't start with "<?xml". That's definitely something that should be improved.

The current workaround is to preselect the correct type in the Open file dialog.

Code pointer:
Comment 3 QA Administrators 2016-09-20 10:11:04 UTC Comment hidden (obsolete)
Comment 4 eisa01 2018-03-18 09:09:40 UTC
Still present

Build ID: 8e8dd8f320a3ff59ff8a16c1a7a867888ce80700
CPU threads: 2; OS: Mac OS X 10.12.6; UI render: default; 
TinderBox: MacOSX-x86_64@49-TDF, Branch:master, Time: 2018-03-13_23:59:29
Locale: en-US (en_US.UTF-8); Calc: group
Comment 5 QA Administrators 2019-05-22 02:52:36 UTC Comment hidden (obsolete)
Comment 6 eisa01 2019-08-10 19:54:40 UTC
Still present

Build ID: 54028dc503fc08eb12e287919d5e2850cff05b73
CPU threads: 4; OS: Mac OS X 10.14.6; UI render: default; VCL: osx; 
TinderBox: MacOSX-x86_64@49-TDF, Branch:master, Time: 2019-07-31_01:48:19
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded
Comment 7 QA Administrators 2021-08-10 03:49:07 UTC Comment hidden (obsolete)
Comment 8 QA Administrators 2023-08-11 03:05:52 UTC
Dear Urmas,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)

If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword

Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team