Bug 116405 - [FILESAVE] Unable to open an ODG file saved from a CorelDraw .cdr file
Summary: [FILESAVE] Unable to open an ODG file saved from a CorelDraw .cdr file
Status: RESOLVED DUPLICATE of bug 115429
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
6.0.2.1 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-14 18:35 UTC by Alexander Polkhovskiy
Modified: 2018-03-20 09:23 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
1 - The file from CorelDraw to open first (27.74 KB, application/vnd.corel-draw)
2018-03-14 18:36 UTC, Alexander Polkhovskiy
Details
2 - the CDR file saved to ODG using LO Draw (19.60 KB, application/vnd.oasis.opendocument.graphics)
2018-03-14 18:37 UTC, Alexander Polkhovskiy
Details
3 - Fixed ODG file that can be opened without error (19.50 KB, application/vnd.oasis.opendocument.graphics)
2018-03-14 18:38 UTC, Alexander Polkhovskiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Polkhovskiy 2018-03-14 18:35:44 UTC
Description:
A CorelDraw file was created and saved in CDR format. This file was then opened with Draw and saved in ODG format.
Trying to open that ODG file with Draw results in a read error.

Steps to Reproduce:
1. Open the CDR file in Draw.
2. Go File -> Save As..., and save as an ODG file.
3. Close the file.
4. Try to open the result ODG file.


Actual Results:  
Error popup:
Read Error
Format error in the file of the sub-document content.xml at the position 2,9514(row,col).

Expected Results:
The file should have been opened without any issues.


Reproducible: Always


User Profile Reset: No



Additional Info:
After unzipping the ODG file, looking at the content of content.xml, there are several

(...)<style:graphic-properties ="evenodd" draw(...)

in the file. Removing the instances of  ' ="evenodd"' clears the problem. Once the instances are removed, the file can be re-saved and re-opened without any issues.
Maybe it's somehow related to hatch.

LO v 6.0.2.1
ID: f7f06a8f319e4b62f9bc5095aa112a65d2f3ac89
CPU threads: 4; OS: Windows 6.3; Rendering: default; 
Locale: ru-RU (ru_RU); Calc: group


User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0
Comment 1 Alexander Polkhovskiy 2018-03-14 18:36:35 UTC
Created attachment 140638 [details]
1 - The file from CorelDraw to open first
Comment 2 Alexander Polkhovskiy 2018-03-14 18:37:45 UTC
Created attachment 140639 [details]
2 - the CDR file saved to ODG using LO Draw
Comment 3 Alexander Polkhovskiy 2018-03-14 18:38:46 UTC
Created attachment 140640 [details]
3 - Fixed ODG file that can be opened without error
Comment 4 Alexander Polkhovskiy 2018-03-14 18:45:10 UTC
Unfortunately, I'm not the owner of the creation software (CorelDraw) to try to make the file smaller and easier. And I don't even know the version it was created in.
Comment 5 Julien Nabet 2018-03-14 19:50:04 UTC
FYI, it's been fixed from 6.0.3 (see https://wiki.documentfoundation.org/ReleasePlan/6.0 for date release)

*** This bug has been marked as a duplicate of bug 115429 ***
Comment 6 Alexander Polkhovskiy 2018-03-20 09:23:03 UTC
Confirm - can't reproduce it in Dev Version: 6.0.4.0.0+
Build ID: 31f3e18d52c0cc124cd7a789a8f1fbc7c2534701
CPU threads: 4; OS: Windows 6.3; UI render: default; 
TinderBox: Win-x86@42, Branch:libreoffice-6-0, Time: 2018-03-19_10:05:01
Locale: ru-RU (ru_RU); Calc: group