Bug 116390 - FILESAVE: Unable to open an ODG file saved from a VSD file saved as ODG
Summary: FILESAVE: Unable to open an ODG file saved from a VSD file saved as ODG
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
6.0.1.1 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-13 23:34 UTC by Remy Gauthier
Modified: 2018-03-16 10:06 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Open this file in VSD format in Draw (90.50 KB, application/vnd.visio)
2018-03-13 23:36 UTC, Remy Gauthier
Details
This is the file that Draw saved when Save As -> ODG format was done (13.78 KB, application/vnd.oasis.opendocument.graphics)
2018-03-13 23:39 UTC, Remy Gauthier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Remy Gauthier 2018-03-13 23:34:38 UTC
Description:
An MS-Visio file was created and saved in VSD format. This file was later opened with Draw and saved in ODG format. Trying to then open the ODG file with Draw results in a read error.

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

Actual Results:  
Error popup:

Read Error
Format error in the file of the sub-document content.xml at the position 2,3185 (row,col).

Hitting on the message brings back to the Welcome screen.

Expected Results:
The file should have opened without issues.


Reproducible: Always


User Profile Reset: Yes



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

(...)<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.

Info in Help... About:

Version: 6.0.1.1
Build ID: 60bfb1526849283ce2491346ed2aa51c465abfe6
Threads CPU : 4; OS : Linux 4.15; UI Render : par défaut; VCL: gtk2; 
Locale : fr-CA (fr_CA.utf8); Calc: group

Attachments will be added (the VSD file and the resulting ODG file).


User-Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0
Comment 1 Remy Gauthier 2018-03-13 23:36:31 UTC
Created attachment 140624 [details]
Open this file in VSD format in Draw
Comment 2 Remy Gauthier 2018-03-13 23:39:18 UTC
Created attachment 140625 [details]
This is the file that Draw saved when Save As -> ODG format was done

In the content.xml file, the first occurrence of the incorrect data is at column 3185 on row 2. Subsequent one is at column 3732.
Comment 3 Alexander Polkhovskiy 2018-03-14 15:14:55 UTC
Confirm the bug on v 6.0.2.1
ID: f7f06a8f319e4b62f9bc5095aa112a65d2f3ac89
CPU threads: 4; OS: Windows 6.3; Rendering: default; 
Locale: ru-RU (ru_RU); Calc: CL
Win 8.1 x64
Comment 4 MM 2018-03-14 17:23:39 UTC
Looks like bug 115429. This one is fixed in v6.0.3, but not earlier.
Comment 5 Buovjaga 2018-03-15 19:42:21 UTC
Remy, Alex: please test with 6.0.3 RC1 when it becomes available https://www.libreoffice.org/download/pre-releases/ (maybe tomorrow)
Comment 6 Xisco Faulí 2018-03-16 10:06:13 UTC
I can no longer reproduce it in

Version: 6.1.0.0.alpha0+
Build ID: 28e8c3e28bf4944ecad23961602b9b1f72613d39
CPU threads: 4; OS: Linux 4.13; UI render: default; VCL: gtk3; 
Locale: en-GB (ca_ES.UTF-8); Calc: group

Closing as RESOLVED WORKSFORME