https://bugs.documentfoundation.org/show_bug.cgi?id=113790

            Bug ID: 113790
           Summary: 'SAXParseException: Attribute w:cstheme redefined'
                    error upon certain changes to a DOCX
           Product: LibreOffice
           Version: 5.4.3.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: critical
          Priority: medium
         Component: filters and storage
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: ba...@caesar.elte.hu
            Blocks: 104448

Created attachment 137703
  --> https://bugs.documentfoundation.org/attachment.cgi?id=137703&action=edit
Sample DOCX

I received a file that gave the same error message upon opening as bug 102929
(that error is also mentioned in bug 92731):
'SAXParseException: [word/document.xml line 2]: Attribute w:cstheme redefined.'

The erroneous element looked like this:
<w:rFonts w:cs="Calibri" w:cstheme="minorHAnsi" w:ascii="Calibri"
w:hAnsi="Calibri" w:cstheme="minorHAnsi"/>

After removing the duplicate attribute from the file manually, the document
could be opened. I copied the relevant part of the text to a new document,
simplified it, and managed to get the followiing repro case:
- Open the attached sample document.
- Copy the bulleted entry "ABCD", and paste it somewhere else, eg. above
"Title3".
- Save as a different DOCX, and reopen it.

=> You get the error/exception mentioned above.

Reproduced using LO 6.0 daily build (2017-11-06_23:18:19,
a5af0fd9f27af42cf2e8571f659cdad6e606215b), 5.4.3.2 / Windows 7.

Note that the sample file, as well as the fixed original contains a couple of
instances of the following OOXML validation error (no idea if it's related,
Word and Writer opens the documents fine):
NumberingSymbolRunProperties    /word/numbering.xml    
/w:numbering[1]/w:abstractNum[1]/w:lvl[1]/w:rPr[1]      RunFonts        The
element has unexpected child element


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=104448
[Bug 104448] [META] DOCX SAXParseException
-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to