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)
Version:
(earliest affected)
3.5.0 release
Hardware: Other All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: ODF-Flat
  Show dependency treegraph
 
Reported: 2015-06-20 11:46 UTC by Urmas
Modified: 2023-12-29 14:02 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


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

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]
Sample

Subj.
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:
http://opengrok.libreoffice.org/xref/core/filter/source/xmlfilterdetect/filterdetect.cxx#127
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

Version: 6.1.0.0.alpha0+
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

Version: 6.4.0.0.alpha0+
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 Comment hidden (obsolete)
Comment 9 eisa01 2023-12-29 14:02:01 UTC
Still present

Version: 24.2.0.0.beta1 (AARCH64) / LibreOffice Community
Build ID: 5f390384195b7264c6e52add9e90a39790285249
CPU threads: 10; OS: macOS 14.2; UI render: Skia/Metal; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded