https://bz.apache.org/ooo/show_bug.cgi?id=126219
Issue ID: 126219
Issue Type: DEFECT
Summary: invalid xml on saving document with comment/annotation
Product: Writer
Version: 4.1.1
Hardware: All
OS: All
Status: CONFIRMED
Severity: normal
Priority: P5
Component: ui
Assignee: [email protected]
Reporter: [email protected]
Steps to reproduce:
1) Open the attached Writer document
2) File > Save As (new name) OK
3) File > Reload ...
Read error. Format error (in content.xml)
The problem is here:
<style:style
office:name="__Annotation__4738_53080995811111111111111"
office:name="__Annotation__4074_68698293611111111111111111111111111111111111111111111111111111111111111111111111"
style:name="Table1" style:family="table">
This raises a validity error because the office:name attribute is repeated.
Removing one or both names will allow the document to load.
More interesting is that the name attributes are added to the style element:
they do not belong there at all, as far as I can see.
Perhaps this has something to do with the new annotation on text ranges
feature?
I've seen several (maybe a dozen) damaged documents like this through the OO
community forum but this is the first one that consistently generated the
problem on saving. So I'm hoping it will allow someone to debug the problem.
Since the damaged document was sent to me in confidence, I have obfuscated the
text of the document and removed all the embedded objects and images. The
modified document behaves exactly the same way as the original (same two
annotation IDs) so it should be useful for testing.
--
You are receiving this mail because:
You are the assignee for the issue.