Issue 22346 - Problems with Change Tracking and Bookmarks
Summary: Problems with Change Tracking and Bookmarks
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 1.1 RC5
Hardware: PC Windows 2000
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2003-11-11 14:15 UTC by pfarrhofer
Modified: 2013-08-07 14:38 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---

Original File (5.44 KB, application/octet-stream)
2003-11-18 14:09 UTC, pfarrhofer
no flags Details
File after modification (5.58 KB, application/octet-stream)
2003-11-18 14:10 UTC, pfarrhofer
no flags Details
The result after undoing the tracked-changes from the document Issue22346_mod.sxw (5.37 KB, application/octet-stream)
2003-11-18 14:37 UTC, pfarrhofer
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description pfarrhofer 2003-11-11 14:15:34 UTC

Change Tracking is a little forgetful as regarding bookmarks. Unfortunately its 
not possible to upload the xml-files here, so i post only the important parts 
and hope its understandable

The original source was:
<text:h text:style-name="Heading 2" text:level="2">
  <text:bookmark-start text:name="DocMan12: Task"/>Task<text:bookmark-end 
text:name="DocMan12: Task"/>
<text:h text:style-name="Heading 3" text:level="3">
  <text:bookmark-start text:name="DocMan13: 
Realisation"/>Realisation<text:bookmark-end text:name="DocMan13: Realisation"/>

After moving this headline and its subheadlines with "Navigator" I got 
following code:
<text:changed-region text:id="ct29205040">
    <office:change-info office:chg-author="unknown" office:chg-date-time="2003-
    <text:h text:style-name="Heading 2" text:level="2">Task </text:h>
    <text:h text:style-name="Heading 3" text:level="3">
		  <text:bookmark-start text:name="DocMan13: 
Realisation"/>Realisation<text:bookmark-end text:name="DocMan13: Realisation"/>
<text:changed-region text:id="ct29203624">
    <office:change-info office:chg-author="unknown" office:chg-date-time="2003-
<text:change-start text:change-id="ct29203624"/>
<text:h text:style-name="Heading 3" text:level="3">Task 3</text:h>
<text:h text:style-name="Heading 3" text:level="3">
  <text:bookmark-start text:name="DocMan13: 
Realisation"/>Realisierung<text:bookmark-end text:name="DocMan13: 
Realisation"/> 3
<text:change-end text:change-id="ct29203624"/>
<text:change text:change-id="ct29205040"/>

With this lost of information (bookmarks) its hard to work with :(
btw. if you look carefully at this sourcecode you can also find another bug 
(for example: "Task" --> "Task 3" without any change-tracking-information about 
this change) - its described in issue 21622

CU Roman
Comment 1 con.hennessy 2003-11-14 10:00:43 UTC
Even though the xml is interesting, please be aware that many of the people who can 
confirm your bug report ( i.e. so that the developers can see it ) need to be able to 
reproduce your problem.  
So please describe the exact steps necessary to reproduce your problem and also 
attach the relevant sxw document. 
Comment 2 pfarrhofer 2003-11-18 14:09:19 UTC
Created attachment 11369 [details]
Original File
Comment 3 pfarrhofer 2003-11-18 14:10:34 UTC
Created attachment 11370 [details]
File after modification
Comment 4 pfarrhofer 2003-11-18 14:36:33 UTC

sorry for the later answer, but there were many other things to do...

How to reproduce the bug:
Open the document "Issue22346_org.sxw" and move the 
headline "Headline 3" with the navigator bevor the headline "Headline 
2". After this you should get something similar to the 
file "Issue22346_mod.sxw"

What's the problem:
x) first in text:tracked-changes you will find this code:
  <office:change-info office:chg-author="unknown" office:chg-date-
  <text:h text:style-name="Heading 1" text:level="1">
    <text:bookmark-start text:name="DocMan7: Headline 3"/>Headline 
3<text:bookmark-end text:name="DocMan7: Headline 3"/>
  <text:p text:style-name="Standard"/>
  <text:h text:style-name="Heading 2" text:level="2">Specification 3 
  <text:p text:style-name="Standard"/>
  <text:h text:style-name="Heading 2" text:level="2">
    <text:bookmark-start text:name="DocMan9: Implementation 
3"/>Implementation 3<text:bookmark-end text:name="DocMan9: 
Implementation 3"/>
  <text:p text:style-name="Standard"/>
  <text:h text:style-name="Heading 1" text:level="1"/>

For the headline "specification 3" there is _no_ bookmark, but for 
the other two headlines - so it's not possible receive the orignal 
version of the document anymore :(

but to implement something like a versioncontroll in a content- or 
documentmanagement-system it's essential that no information get lost 
(see following discussion:  "[xml-dev] Working of oocalc with xml 
files and DTD")

x) Second:
In the two cases where the bookmark stays in the text:tracked-changes 
there are new bookmarks generated (text:name="DocMan9: Implementation 
31" and text:name="DocMan7: Headline 31"), but there is no 
information about the bookmarks, because the text:change-start-
element for the insertation starts _after_ the first changed-bookmark

If i now try to undo the changes i will have two bookmarks for the 
same area (for example: text:name="DocMan7: Headline 31" and 
text:name="DocMan7: Headline 3")

x) third: It's possible to reference a bookmark, which is in the 
change-tracking-information. if you take the 
file "Issue22346_mod.sxw" you can set a cross-reference to, for 
exampe, "DocMan7: Headline 3", which is only contained under a 
text:tracked-changes - node

x) fourth: its not only a problem for me. its also a problem for OOo-
Write: if i try to undo the changes with OOo-Write i'm losing 3 
Bookmarks (see Issue22346_undo.sxw)

I hope its better discribed know...


CU Roman
Comment 5 pfarrhofer 2003-11-18 14:37:46 UTC
Created attachment 11372 [details]
The result after undoing the tracked-changes from the document Issue22346_mod.sxw
Comment 6 jack.warchold 2004-02-16 12:01:31 UTC
reassigend to jw
Comment 7 jack.warchold 2004-02-27 15:55:32 UTC
confirmed reassigned to os
Comment 8 Oliver Specht 2004-02-27 16:22:38 UTC
Comment 9 michael.ruess 2004-05-04 08:47:39 UTC
Due to time limitatins re-targeted to "OO later".
Comment 10 Rob Weir 2013-07-30 02:16:00 UTC
Reset assignee on issues not touched by assignee in more than 2000 days.