Bug 71788 - FILESAVE: DOCX export : File corruption: XML tag mismatch error after Roundtrip
Summary: FILESAVE: DOCX export : File corruption: XML tag mismatch error after Roundtrip
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version: 4.2.0.0.alpha0+ Master
Hardware: Other All
: medium normal
Assignee: pallavi.jadhav
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-19 13:40 UTC by pallavi.jadhav
Modified: 2013-11-20 12:37 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
For attached document, in header2.xml the 'w:tc' start tag does not match the end tag of 'w:hdr' (215.12 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2013-11-19 13:43 UTC, pallavi.jadhav
Details

Description pallavi.jadhav 2013-11-19 13:40:43 UTC

    
Comment 1 pallavi.jadhav 2013-11-19 13:43:02 UTC
Created attachment 89465 [details]
For attached document, in header2.xml the 'w:tc' start tag does not match the end tag of 'w:hdr'
Comment 2 pallavi.jadhav 2013-11-19 13:49:43 UTC
Steps to Reproduce:-
1] open attache document in LibreOffice 4.2
2] Select save_as option
3] After save_as, open file in MS Office
4] File gets corrupted

Current beahviour:-
Import:
1] Footer is missing

Export:
1] In header2.xml,
   <w:tbl>
       <w:tblPr> </w:tblPr>
       <w:tblGrid> </w:tblGrid>
   is getting repeated inside <w:tr> which is not correct and causing corruption.
2] Also the footer.xml is missing

Expected behaviour:-
1] File should not get corrupted after Roundtrip in LibreOffice
2] Footer information should be saved
Comment 3 Jorendc 2013-11-20 07:00:17 UTC
Thanks for reporting :-).

Not only footer.xml is missing, also endnotes.xml, footnotes.xml and webSettings.xml

Not sure that's also bad or not :).

Marking as NEW. Tested using Mac OSX 10.9 with LibreOffice Version: 4.2.0.0.alpha1+ Build ID: 9c45345a680f7444df251f9403c7d56572380f21
TinderBox: MacOSX-x86@49-TDF, Branch:master, Time: 2013-11-18_12:43:03

Kind regards,
Joren
Comment 4 pallavi.jadhav 2013-11-20 08:22:35 UTC
Hi Joren,

Thanks for testing the bug.

For missing endnotes.xml and footnotes.xml, LibreOffice does not write back these files if those are empty. If you check endnotes.xml and footnotes.xml, you can observe these files are empty. Hence LibreOffice is not writing them back while exporting the document.

And surely there is a problem with webSettings.xml. 

Right now working on corruption part.

Regards,
Pallavi Jadhav


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.