Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | invalid xml on saving document with comment/annotation | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Writer | Reporter: | Joe Smith <jes> | ||||||||
Component: | ui | Assignee: | AOO issues mailing list <issues> | ||||||||
Status: | CLOSED DUPLICATE | QA Contact: | |||||||||
Severity: | Major | ||||||||||
Priority: | P5 (lowest) | CC: | john.ha24, kschenk, oliver.brinzing, orcmid | ||||||||
Version: | 4.1.1 | ||||||||||
Target Milestone: | --- | ||||||||||
Hardware: | All | ||||||||||
OS: | All | ||||||||||
Issue Type: | DEFECT | Latest Confirmation in: | --- | ||||||||
Developer Difficulty: | --- | ||||||||||
Attachments: |
|
Description
Joe Smith
2015-04-01 17:13:19 UTC
Created attachment 84626 [details]
Sample document generating error on save
I'm testing with AOO 4.1.1 on Fedora Linux OpenOffice 4.1.1 411m6(Build:9775) it works if i save and reload the file with aoo401, but aoo411 and aoo412dev will produce the error Created attachment 84629 [details]
aoo401_open_save (ok)
Created attachment 84630 [details]
aoo411_open_save (error)
See the forum post "[Hint] How did I fix my ODT file" at https://forum.openoffice.org/en/forum/viewtopic.php?f=7&t=1532. The post includes many reports of corrupted XML files, as well as other forms of data loss in faulty files. Many uploaded .odt files have been analysed by forum members, and many have been found where the XML tags in content.xml have somehow become corrupted. acknak has often been able to correct the XML errors manually, and thus recover the file. For example, see https://forum.openoffice.org/en/forum/viewtopic.php?f=7&t=1532&start=360#p357769 for a file which has currupted tags, and which refers to this Issue 126219, and where acknak says: > In case someone is wondering, here is the problem: an easy-to-fix problem in content.xml: > extra attributes in a style definition: > > <office:automatic-styles> > <style:style office:name="__Annotation__10737_1353476854111" > office:name="__Annotation__5569_679014524111" > office:name="__Annotation__12292_187842290111" style:name="P1" style:family="paragraph" > style:parent-style-name="Standard"> > <style:paragraph-properties fo:margin-left="0cm" fo:margin-right="0cm" > fo:margin-top="0cm" fo:margin-bottom="0.199cm" .../> > </style:style> > > Just delete the office:name attributes (blue). Thanks for catching this. I am marking this as a duplicate of Issue or 126479, although that is more recent, since it provides more complete discussion and the same solution. With regard "easy to fix" we need to ask "for whom" :). I suppose a repair tool would be handy for this case, if we had one of those to customize. *** This issue has been marked as a duplicate of issue 126479 *** |