Issue 124030 - Failed to open ODT file exported from AOO with comment/annotation in original docx file
Summary: Failed to open ODT file exported from AOO with comment/annotation in original...
Alias: None
Product: Writer
Classification: Application
Component: open-import (show other issues)
Version: 4.1.0-dev
Hardware: All All
: P3 Normal (vote)
Target Milestone: 4.1.0
Assignee: Oliver-Rainer Wittmann
QA Contact:
Depends on:
Reported: 2014-01-15 10:29 UTC by fanyuzhen
Modified: 2017-05-20 11:43 UTC (History)
2 users (show)

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

Test docx file (12.55 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2014-01-15 10:29 UTC, fanyuzhen
no flags Details
Error msgbox for failing openning exported odt (6.07 KB, image/jpeg)
2014-01-15 10:32 UTC, fanyuzhen
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description fanyuzhen 2014-01-15 10:29:42 UTC
Created attachment 82291 [details]
Test docx file

Build: AOO410m1(Build:9750)  -  Rev. 1557518

1. Open the test document FFCMS2007FFCSW_Comment_numbering0000.docx in AOO
2. Save it as ODT
3. Try to open the exported ODT file in AOO

Problem: failed to open it, with error message "Read-Error", "Error reading file" (please see screenshot ReadErrorForExportedODF.jpg)
Comment 1 fanyuzhen 2014-01-15 10:32:53 UTC
Created attachment 82292 [details]
Error msgbox for failing openning exported odt
Comment 2 Edwin Sharp 2014-01-15 13:12:16 UTC
Confirmed with
AOO410m1(Build:9750)  -  Rev. 1557669
2014-01-14_04:11:13 - Rev. 1557927
Comment 3 Oliver-Rainer Wittmann 2014-01-15 14:21:15 UTC
I can confirm this defect.

Taking over to work on a solution.
Comment 4 Oliver-Rainer Wittmann 2014-01-15 16:34:59 UTC
fix in progress

root cause:
The code which applies the read comment/annotation to a text range, when ODF element <office:annotation-end> is read, triggers by side effect the invalidation of a <com::sun::star::text::TextRange> instance which are hold to apply certain attributes. When accessing this invalid <com::sun::star::text::TextRange> instance OpenOffice crashes.
I figured out that the invalidation of the <com::sun::star::text::TextRange> instance is not correct as the change does not influence this <com::sun::star::text::TextRange> instance.
Comment 5 SVN Robot 2014-01-16 11:50:05 UTC
"orw" committed SVN revision 1558762 into trunk:
124030 - <::sw::mark::MarkManager::deleteMarks(..)> - do not delete UNO mark ...
Comment 6 Oliver-Rainer Wittmann 2014-01-16 12:10:22 UTC
fixed on trunk for next release
Comment 7 fanyuzhen 2014-01-24 08:12:31 UTC
It's verified fixed in build AOO410m1(Build:9750)  -  Rev. 1560574