Apache OpenOffice (AOO) Bugzilla – Issue 22346
Problems with Change Tracking and Bookmarks
Last modified: 2013-08-07 14:38:26 UTC
Hello! 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: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:h> ... After moving this headline and its subheadlines with "Navigator" I got following code: ... <text:changed-region text:id="ct29205040"> <text:deletion> <office:change-info office:chg-author="unknown" office:chg-date-time="2003- 11-11T14:02:00"/> <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:h> </text:deletion> </text:changed-region> <text:changed-region text:id="ct29203624"> <text:insertion> <office:change-info office:chg-author="unknown" office:chg-date-time="2003- 11-11T14:02:00"/> </text:insertion> </text:changed-region> ... <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:h> <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
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.
Created attachment 11369 [details] Original File
Created attachment 11370 [details] File after modification
Hallo! 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: <text:deletion> <office:change-info office:chg-author="unknown" office:chg-date- time="2003-11-18T15:08:00"/> <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:h> <text:p text:style-name="Standard"/> <text:h text:style-name="Heading 2" text:level="2">Specification 3 </text:h> <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:h> <text:p text:style-name="Standard"/> <text:h text:style-name="Heading 1" text:level="1"/> </text:deletion> 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... thanks! CU Roman
Created attachment 11372 [details] The result after undoing the tracked-changes from the document Issue22346_mod.sxw
reassigend to jw
confirmed reassigned to os
.
Due to time limitatins re-targeted to "OO later".
Reset assignee on issues not touched by assignee in more than 2000 days.