Download it now!
Bug 126126 - LibreOffice can't open ODT file with comment created in MS Word
Summary: LibreOffice can't open ODT file with comment created in MS Word
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
(earliest affected) release
Hardware: All All
: medium normal
Assignee: Not Assigned
Keywords: filter:odt
Depends on:
Blocks: Comments
  Show dependency treegraph
Reported: 2019-06-27 11:16 UTC by leonid.melkozerov
Modified: 2019-10-13 20:39 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:

LO can't open this file (9.40 KB, application/vnd.oasis.opendocument.text)
2019-06-27 11:16 UTC, leonid.melkozerov
LO opens this file (5.85 KB, application/vnd.oasis.opendocument.text)
2019-06-27 11:16 UTC, leonid.melkozerov
original DOCX (52.36 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2019-06-27 11:17 UTC, leonid.melkozerov
File content in MS Word 365 (70.90 KB, image/png)
2019-07-05 10:44 UTC, Inna
Example of bad ODT created in MS Word 2016 (5.76 KB, application/vnd.oasis.opendocument.text)
2019-10-13 20:36 UTC, Roman Kuznetsov

Note You need to log in before you can comment on or make changes to this bug.
Description leonid.melkozerov 2019-06-27 11:16:13 UTC
Created attachment 152441 [details]
LO can't open this file

file exported from MS Word, contains some tables and 1 comment that starts in table and ends after table ("table-with-comment.odt") - LO can't open it (error in context.xml at position 2,84878)

if you remove all tables except first("table-with-comment-other-tables-removed.odt"), LO opens this file, but doesn't load comment end tag
Comment 1 leonid.melkozerov 2019-06-27 11:16:38 UTC
Created attachment 152442 [details]
LO opens this file
Comment 2 leonid.melkozerov 2019-06-27 11:17:03 UTC
Created attachment 152443 [details]
original DOCX
Comment 3 Xisco Faulí 2019-06-27 11:42:31 UTC
Thanks for reporting this issue.
I've downloaded the original DOCX, saved it as ODT and the file is open correctly afterwards

Build ID: a294457eb95e60028539b6783abac78b56561fe2
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US
Calc: threaded


Id. de compilación: 2412653d852ce75f65fbfa83fb7e7b669a126d64
Subprocs. CPU: 1; SO: Windows 6.1; Repres. IU: predet.; VCL: win; 
Configuración regional: es-ES (es_ES); Idioma de IU: es-ES
Calc: threaded

Please provide a clearer set of step-by-step instructions on how to reproduce the problem.
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the steps are provided
Comment 4 leonid.melkozerov 2019-06-27 11:57:18 UTC
try to open exported ODT file, it's attached as first attachment. this file exported by MS Word for macOS 15.26 (160910), and can't be opened by LO 6.2.3 & 6.2.4
Comment 5 Xisco Faulí 2019-06-27 12:19:02 UTC
my question is, how the document was created? I can't replicate it.
Are you able to generate a corrupted file from scratch ?
Comment 6 Inna 2019-07-05 10:44:26 UTC
Created attachment 152575 [details]
File content in MS Word 365
Comment 7 Inna 2019-07-05 10:45:59 UTC
I can provide more detailed info about this issue. Please see file content example in comment above.

Environment: MS Office 365 version 1906 (build 11727.20210), LibreOffice; LibreOffice 6.0; Win 7 64 bit

1. Open MS Word 365
2. Insert 3*3 table with text 
3. Add some text after table
4. Ctrl+A
5. Open "Review" tab
6. Click "New comment" button
7. Insert some text in comment body
8. Apply changes for comment
9. Save file as ODT
10. Open File in LibreOffice

Actual result: Error is displayed and it's impossible to open such file.
Comment 8 Roman Kuznetsov 2019-10-13 20:36:43 UTC
Created attachment 154978 [details]
Example of bad ODT created in MS Word 2016
Comment 9 Roman Kuznetsov 2019-10-13 20:39:46 UTC
I can confirm it by steps from Inna with my file from attach. It was created in MS Word 2016

Версия: (x64)
ID сборки: e4979457bf11a4ee4594eb2ba3f9bf9ca07fab79
Потоков ЦП: 4; ОС:Windows 10.0; Отрисовка ИП: GL; VCL: win; 
Локаль: ru-RU (ru_RU); Язык интерфейса: ru-RU
Calc: threaded