https://issues.apache.org/ooo/show_bug.cgi?id=121571

            Bug ID: 121571
        Issue Type: DEFECT
           Summary: Nested recorded/tracked changes do not persist in ODT
                    format, text corruption
    Classification: Application
           Product: word processor
           Version: AOO400-dev
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: save-export
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Created attachment 80093
  --> https://issues.apache.org/ooo/attachment.cgi?id=80093&action=edit
Test file: nested_tracked_changes.odt

When different users edit an ODT file with active change tracking, AOO is
supposed to "nest" revisions done by one user inside revisions done by another
user when necessary: If User 1 adds text that User 2 later deletes, the
insertion revision mark by User 1 is not simply removed but contained inside a
deletion revision mark.

AOO saves such nested revisions correctly in DOC format, but fails in ODT
files: Tracked deletions of tracked insertions are lost after reload of the
document, and the deletion text portions are reordered.

Test system: AOO 3.4.1 (release) and a newer AOO snapshot (AOO350m1(Build:9611)
- Rev. 1420743 / 2012-12-13_04:34:45 - Rev. 1421074), both Linux 64-bit-builds
on Ubuntu 12.04/AMD64. Bug is also reproducible in LibreOffice.

Reproduce with the attached file:

(Keep "Record changes" on. In the following reproduction steps, tracked changes
text portions are marked with {}.)

Open file "nested_tracked_changes.odt". "Record Changes" is active.
User 1 has added the word "big":
  A mouse is running along the {big} motorway trying to find some cheese.
The "Accept or Reject Changes" windows lists 1 tracked change:
  (1) User 1 insertion of "big"

User 2 deletes "running along the big motorway ":
The deletion is split into 3 different revision marks:
  (2) User 2 deletion of "running along the "
  (3) User 2 deletion of the User 1 insertion "_big_"
  (4) User 2 deletion of " motorway "
  A mouse is {running along the }{{big}}{ motorway }trying to find some cheese.
Revision (1) is correctly shown as nested inside revision (3) in the "Accept or
Reject Changes" window.

Save file as "nested_tracked_changes.doc" (WW8) and as
"nested_tracked_changes.odt". Close the file.

On opening the DOC version, all tracked changes correctly appear as before the
file save.
On opening the ODT version, the file contents is corrupted:
- There are no nested changes: Revision (1) is lost.
- The 3 "top level" tracked changes that have survived the ODT save are in
incorrect order, that is, the text portions are jumbled:
  A mouse is {motorway trying }{big }{running along the }to find some cheese.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

Reply via email to