https://bz.apache.org/ooo/show_bug.cgi?id=128356

          Issue ID: 128356
        Issue Type: DEFECT
           Summary: Track Changes and Annotations on text range can cause
                    corruption. Applies to 4.x (all versions?)
           Product: Writer
           Version: 4.1.7
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P5 (lowest)
         Component: editing
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 86921
  --> https://bz.apache.org/ooo/attachment.cgi?id=86921&action=edit
file showing the annotation

When Track Changes is enabled and an Annotation is attached to a text range,
the file can often be corrupted on reopening.  This manifests as two
Aannotation reference numbers attaching to paragraph format P1, which
OpenOffice reports as a SaxParse error.  Removal of one or other of these
Annotation reference numbers will permit the file to open correctly.

  We can now replicate the fault reliably where it seems to happen if "text
containing two comments attached to a range of characters" is deleted.  You can
see it happen with comments.odt which I have created for raising a bug report.
  Open comments.odt
  Set Edit > Changes > Record if not already set
  Highlight sentences one and two.
  Press delete.
  Save.
  Open comments.odt

  Expected behaviour:  File opens correctly

  Actual behaviour:  File does not open and gives "Format error discovered in
the file in sub-document content.xml at 2,2778. 

  Examination of content.xml shows the first paragraph style definition (P1)
has been corrupted by the addition of office:name="__Annotation__2_10671659881"
office:name="__Annotation__3_10671659881" Notes

  1.  You must set Edit > Record > Changes.  If it is not set, the error does
not occur.

  2. Deleting only one sentence does not cause the error.

  3.  Deleting each comment by the Delete comment command within the comment
does not cause the problem.  Note that the range of characters is no longer
highlighted after the comment has been deleted. 

  4. If the comments are at a location in the text, and not attached to a range
of characters, the error does not occur.

-- 
You are receiving this mail because:
You are the assignee for the issue.

Reply via email to