Bug 108649 - HTML export should write what it can even if exception
Summary: HTML export should write what it can even if exception
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: (X)HTML-Export
  Show dependency treegraph
 
Reported: 2017-06-20 13:31 UTC by Laurent Godard
Modified: 2025-10-21 13:48 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
this file leads to a failing xhtml export (317.23 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2017-06-20 13:31 UTC, Laurent Godard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Godard 2017-06-20 13:31:56 UTC
Created attachment 134163 [details]
this file leads to a failing xhtml export

The attached document has to be exported in xhtml

It contains textual information and a wmf image (possibly pathological)

The wmf image leads to an export failure and no html file is created despite other textual information could be retrieved

expected : generate the xhtml output, even imperfect as it would be better than nothing

To reproduce:

- GUI, xhtml export lead to a message box 'general failure'
- headless command line
$ soffice --headless --convert-to "html:XHTML Writer File:UTF8" --outdir ~/temp  ~/temp/choke_wmf.docx
convert /home/lgodard/temp/choke_wmf.docx -> /home/lgodard/temp/choke_wmf.html using filter : XHTML Writer File:UTF8
Entity: line 5: parser error : xmlSAX2Characters: huge text node
n/+bm5//m5uf/5ubn/+bm5//m5uf/5ubn/+bm5//m5uf/5ubn/+bm5//m5uf/5ubn/+bm5//m5uf/5ub
                                                                               ^
Entity: line 5: parser error : Extra content at the end of the document
n/+bm5//m5uf/5ubn/+bm5//m5uf/5ubn/+bm5//m5uf/5ubn/+bm5//m5uf/5ubn/+bm5//m5uf/5ub
                                                                               ^
Error: Please verify input parameters... (SfxBaseModel::impl_store <file:///home/lgodard/temp/choke_wmf.html> failed: 0xc10)


Please note that the problem is not espacially the wmf image, but that other information are not generated in case of error
Comment 1 Buovjaga 2017-06-27 17:26:03 UTC
Yep.

Arch Linux 64-bit, KDE Plasma 5
Version: 6.0.0.0.alpha0+
Build ID: f808c50c6eece87d515df3b84b1c774395b5d9bc
CPU threads: 8; OS: Linux 4.11; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on June 26th 2017

Arch Linux 64-bit
LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
Comment 2 QA Administrators 2018-06-28 02:48:21 UTC Comment hidden (obsolete)
Comment 3 Laurent Godard 2018-06-28 07:31:50 UTC
still present in

Version: 6.0.5.2
Build ID: 1:6.0.5-1
Threads CPU : 8; OS : Linux 4.16; UI Render : par défaut; VCL: gtk3; 
Locale : fr-FR (fr_FR.UTF-8); Calc: group
Comment 4 QA Administrators 2019-06-29 02:58:08 UTC Comment hidden (obsolete)
Comment 5 Laurent Godard 2019-07-08 08:26:05 UTC
still reproducing on

Version: 6.1.5.2
Build ID: 1:6.1.5-3
Threads CPU : 12; OS : Linux 4.19; UI Render : par défaut; VCL: gtk2; 
Locale : fr-FR (fr_FR.UTF-8); Calc: group threaded

- GUI, xhtml export lead to a message box 'general failure'

- command line

$ soffice --headless --convert-to "html:XHTML Writer File" --outdir ~/temp  ~/temp/choke_wmf.docx

Entity: line 5: parser error : xmlSAX2Characters: huge text node
m5//m5uf/5ubn/+bm5//m5uf/5ubn/+bm5//m5uf/5ubn/+bm5//m5uf/5ubn/+bm5//m5uf/5ubn/+b
                                                                               ^
Entity: line 5: parser error : Extra content at the end of the document
m5//m5uf/5ubn/+bm5//m5uf/5ubn/+bm5//m5uf/5ubn/+bm5//m5uf/5ubn/+bm5//m5uf/5ubn/+b
                                                                               ^
Error: Please verify input parameters... (SfxBaseModel::impl_store <file:///home/lgodard/temp/choke_wmf.html> failed: 0xc10(Error Area:Io Class:Write Code:16))
Comment 6 QA Administrators 2021-07-08 03:42:34 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2023-07-09 03:16:10 UTC Comment hidden (obsolete)
Comment 8 QA Administrators 2025-07-09 03:10:54 UTC Comment hidden (obsolete)
Comment 9 fpy 2025-10-21 13:48:53 UTC
repro 

Version: 25.2.6.2 (X86_64) / LibreOffice Community
Build ID: 520(Build:2)
CPU threads: 4; OS: Linux 6.14; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: fr-FR
Ubuntu package version: 4:25.2.6-0ubuntu0.25.04.1
Calc: threaded