<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - HTML export should write what it can even if exception"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=108649">108649</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>HTML export should write what it can even if exception
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>5.2.7.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>filters and storage
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>lgodard.libre@laposte.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=134163" name="attach_134163" title="this file leads to a failing xhtml export">attachment 134163</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=134163&action=edit" title="this file leads to a failing xhtml export">[details]</a></span>
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</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>