Bug 151758 - Teg w:ins & w:del
Summary: Teg w:ins & w:del
Status: CLOSED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.3.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-25 18:01 UTC by Roman
Modified: 2023-03-30 21:10 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
problem ins (23.02 KB, image/png)
2022-10-25 18:02 UTC, Roman
Details
problem del (23.37 KB, image/png)
2022-10-25 18:03 UTC, Roman
Details
ins-docx (39.78 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2022-11-08 07:16 UTC, Roman
Details
error message (54.50 KB, image/jpeg)
2022-11-08 08:02 UTC, Dieter
Details
video kak delat (7.83 MB, video/x-matroska)
2022-11-10 16:22 UTC, Roman
Details
ins no problem (39.59 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2022-11-11 09:53 UTC, Roman
Details
problems 7.4.3.2 (38.98 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2022-11-28 09:33 UTC, Roman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman 2022-10-25 18:01:50 UTC
Description:
When opening the file, it refers to the problem, and if you click restore, it will open only part of the pages.

After digging into document.xml I came to the conclusion that the tags were incorrectly placed </w:del></w:ins><w:ins w:id="66" w:author="" w:date="2022-07-28T14:25:53Z"></w:rPr></w:pPr> in this case </w:ins>.  In another case <w:del w:id="18" w:author="" w:date="2022-10-19T12:25:27Z"><w:sdt><w:sdtPr><w:id w:val="985818898"/><w:placeholder><w:docPart w:val="DefaultPlaceholder_-1854013440"/></w:placeholder></w:sdtpr><w:sdtContent></w:del><w:del ...

Steps to Reproduce:
1.Working in tracking mode
2.Saving to .docx
3.

Actual Results:
It is impossible to read the entire document in its entirety and with all the edits

Expected Results:
Open a file with all edits


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 7.4.0.3 / LibreOffice Community
Build ID: f85e47c08ddd19c015c0114a68350214f7066f5a
CPU threads: 12; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: ru-RU (ru_RU.UTF-8); UI: ru-RU
Calc: threaded
Comment 1 Roman 2022-10-25 18:02:51 UTC
Created attachment 183267 [details]
problem ins

problem ins
Comment 2 Roman 2022-10-25 18:03:18 UTC
Created attachment 183268 [details]
problem del

problem del
Comment 3 Dieter 2022-11-04 18:04:01 UTC
(In reply to Roman from comment #0)
> Description:
> When opening the file, it refers to the problem, and if you click restore,
> it will open only part of the pages.

Please attach that file and add some more specific steps to reproduce. Thank you.
=> NEEDINFO
Comment 4 Roman 2022-11-08 07:16:40 UTC
Created attachment 183454 [details]
ins-docx

attached a file
Comment 5 Dieter 2022-11-08 07:25:37 UTC
(In reply to Roman from comment #4)
> Created attachment 183454 [details]
> ins-docx
> 
> attached a file

Thank you for sample document. But I recieve an error message while try to opening the file. Please make sure, that the file is not corrupted.
=> NEEDINFO
Comment 6 Roman 2022-11-08 07:27:09 UTC
(In reply to Dieter from comment #3)
> (In reply to Roman from comment #0)
> > Description:
> > When opening the file, it refers to the problem, and if you click restore,
> > it will open only part of the pages.
> 
> Please attach that file and add some more specific steps to reproduce. Thank
> you.
> => NEEDINFO

As the user described, he just used a ready-made document and rules as necessary, while not making sure to disable tracking mode.
But the tracking mode concerns not only those who could not identify, but also those who work in it.

Also today, ins also came to this version
Version: 7.4.2.3 / LibreOffice Community
Build ID: 382eef1f22670f7f4118c8c2dd222ec7ad009daf
Comment 7 Roman 2022-11-08 07:29:25 UTC
(In reply to Dieter from comment #5)
> (In reply to Roman from comment #4)
> > Created attachment 183454 [details]
> > ins-docx
> > 
> > attached a file
> 
> Thank you for sample document. But I recieve an error message while try to
> opening the file. Please make sure, that the file is not corrupted.
> => NEEDINFO

So this is what users see when they open a document that they just saved.And well, the simple problem is solved by tags at the root of the document. But the problem is serious
Comment 8 Dieter 2022-11-08 08:01:55 UTC
(In reply to Roman from comment #7)
> So this is what users see when they open a document that they just saved.And
> well, the simple problem is solved by tags at the root of the document. But
> the problem is serious

Do you really mean this message? Don't believe it.
Comment 9 Dieter 2022-11-08 08:02:14 UTC
Created attachment 183456 [details]
error message
Comment 10 Dieter 2022-11-08 08:03:38 UTC
MS word gives also error message. So I think, there is a problem with the document.
Comment 11 Roman 2022-11-08 08:41:51 UTC
(In reply to Dieter from comment #10)
> MS word gives also error message. So I think, there is a problem with the
> document.

Yes, the problem is in the document when working in writer with tracking mode enabled with 2 authors, this problem already occurs.
Comment 12 QA Administrators 2022-11-09 04:03:44 UTC Comment hidden (obsolete)
Comment 13 Dieter 2022-11-10 16:00:41 UTC
(In reply to Roman from comment #11)
> Yes, the problem is in the document when working in writer with tracking
> mode enabled with 2 authors, this problem already occurs.

So please describe the steps how someone can create a document, that produces those problems. Thank you
=> NEEDINFO
Comment 14 Roman 2022-11-10 16:22:02 UTC
Created attachment 183525 [details]
video kak delat
Comment 15 QA Administrators 2022-11-11 03:57:11 UTC Comment hidden (obsolete)
Comment 16 Dieter 2022-11-11 07:55:47 UTC
(In reply to Roman from comment #14)
> Created attachment 183525 [details]
> video kak delat

Thank you for the video. that makes it more clear. Is it possible to attach that file from beginning of the video (without error message), so I can follow steps from the video?
Comment 17 Roman 2022-11-11 09:20:51 UTC
(In reply to Dieter from comment #16)
> (In reply to Roman from comment #14)
> > Created attachment 183525 [details]
> > video kak delat
> 
> Thank you for the video. that makes it more clear. Is it possible to attach
> that file from beginning of the video (without error message), so I can
> follow steps from the video?

This file on the video has already been repaired by me.
It's a pity that you can't imagine how easy it is to fix it, so I'll share it. The file that was sent earlier is exactly the same

before
</w:del></w:ins><w:ins w:id="66" w:author="" w:date="2022-07-28T14:25:53Z"></w:rPr>
after
</w:del><w:ins w:id="66" w:author="" w:date="2022-07-28T14:25:53Z"></w:ins></w:rPr>

how to find where to change says the file itself if you click no.

I am very sad about this that at the beginning of the appeal I left everything noticeable
Comment 18 Dieter 2022-11-11 09:26:26 UTC
(In reply to Roman from comment #17)
> This file on the video has already been repaired by me.
> It's a pity that you can't imagine how easy it is to fix it, so I'll share
> it. The file that was sent earlier is exactly the same

It's not a problem to repair a corrupted file, but to be sure, that the bug doesn't appear only because the file is corrupted, we need better steps.

Sorry, that I can't help. Perhaps somebody else can.
Comment 19 Roman 2022-11-11 09:53:18 UTC
Created attachment 183537 [details]
ins no problem

file on video
Comment 20 Roman 2022-11-14 20:33:40 UTC
added a file from the video
Comment 21 Dieter 2022-11-22 21:09:43 UTC
(In reply to Roman from comment #20)
> added a file from the video

Thank you for the vido. Will have a look at it, if I have more time.
BTW: You can't confirm your own bug report by changing status to NEW. So back to UNCONFIRMED
Comment 22 Roman 2022-11-23 10:25:23 UTC
We wait
Comment 23 Dieter 2022-11-28 07:28:45 UTC
Thank you for the test file, but I can't confirm your problem with

Version: 7.4.3.2 (x64) / LibreOffice Community
Build ID: 1048a8393ae2eeec98dff31b5c133c5f1d08b890
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

Steps
1. Open attachment 183537 [details]
2. Show track changes
3. Scroll until end of document.
4. Hide track changes -> Canvas jumps to beginning of document
5. Delete, add and delete some text in some random selected table cells
6. Save document (docx-file) and close LibreOffice
7. Open document

Actual and expected result: No error message
Comment 24 Roman 2022-11-28 09:33:29 UTC
Created attachment 183849 [details]
problems 7.4.3.2

No, the problem remains, I attach the file
Comment 25 Roman 2022-12-13 05:58:16 UTC
I think I forgot to add new
Comment 26 Dieter 2022-12-13 06:48:47 UTC
(In reply to Roman from comment #25)
> I think I forgot to add new

No, you can't confirm your own bug report.
Comment 27 Roman 2022-12-26 18:43:47 UTC
Updating the relevance of the problem to version 7.4.3.2,
I really ask you to help with the solution, it takes some most of the working time
Comment 28 Dieter 2022-12-26 20:10:25 UTC
(In reply to Roman from comment #27)
> Updating the relevance of the problem to version 7.4.3.2,
> I really ask you to help with the solution, it takes some most of the
> working time

I hope, somebody else can help. Perhaps a problem only in Linux.
Comment 29 Roman 2022-12-27 17:12:23 UTC
(In reply to Dieter from comment #28)
> (In reply to Roman from comment #27)
> > Updating the relevance of the problem to version 7.4.3.2,
> > I really ask you to help with the solution, it takes some most of the
> > working time
> 
> I hope, somebody else can help. Perhaps a problem only in Linux.

No problem not only on linux, also windows.

The problem is that it packs the tags of the second person incorrectly. Have you tried opening xml format with a browser?

https://ask.libreoffice.org/t/error-saxexception-word-document-xml-line-2-opening-and-ending-tag-mismatch-rpr-line-2-and-ins/82864

>Very low-tech parsing of the document.xml inside a .docx. An assertion error indicates mismatched tags, e.g.

AssertionError: 43747: <w:rPr> -- </w:ins>

This means that tag #43747 was </w: ins> and structurally matched an earlier <w:rPr> tag, but obviously they are mismatched.

>
Comment 30 Roman 2022-12-27 17:18:28 UTC
(In reply to Dieter from comment #28)
> (In reply to Roman from comment #27)
> > Updating the relevance of the problem to version 7.4.3.2,
> > I really ask you to help with the solution, it takes some most of the
> > working time
> 
> I hope, somebody else can help. Perhaps a problem only in Linux.

video kak delat (7.83 MB, video/x-matroska)
2022-11-10 16:22 UTC, Roman

Here on the video windows system
Comment 31 Roman 2023-02-15 08:20:10 UTC
The problem appears when the values are filled
first/last_name/initials

These fields are filled in due to the peculiarity of Record track changes

Version: 7.5.0.3 (X86_64) / LibreOffice Community
Build ID: c21113d003cd3efa8c53188764377a8272d9d6de
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: x11
Locale: ru-RU (ru_RU.UTF-8); UI: en-US
Calc: threaded
Comment 32 Roman 2023-03-08 13:11:26 UTC
обновляется