Bug 119710 - shapes lost when odg file is created on Mac and then opened on Linux
Summary: shapes lost when odg file is created on Mac and then opened on Linux
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
6.1.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-05 16:54 UTC by Mustafa Kuscu
Modified: 2020-02-17 11:45 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
created on Mac, shape is not visible on Linux. (10.39 KB, application/vnd.oasis.opendocument.graphics)
2018-10-12 13:24 UTC, Mustafa Kuscu
Details
more advanced case. see comment (68.45 KB, application/vnd.oasis.opendocument.graphics)
2018-10-12 13:28 UTC, Mustafa Kuscu
Details
file2 saved again on Mac. Linux can't see the shapes added by mac. (69.54 KB, application/vnd.oasis.opendocument.graphics)
2018-10-12 13:35 UTC, Mustafa Kuscu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mustafa Kuscu 2018-09-05 16:54:13 UTC
Steps to reproduce: 

On the Mac, (Libreoffice dmg, downloaded latest as of the day):
1. Create a new Draw document.
2. Add a shape from the shapes gallery, for instance, a person shape.
3. Save the file 

Then, copy the file to the Linux machine. (Arch Linux Libreoffice 6.1.0.3)
On the Linux machine:
1. Open the file

Some of the shapes are lost. For instance, person shapes. Instead, placeholders with text mentioning MacOs style location of the shape: file:///Applications/LibreOffice.app/...

But some shapes (some smileys) are preserved. 

Will add a screenshot when I have access to the Mac.
Comment 1 Xisco Faulí 2018-10-11 12:28:24 UTC
Thank you for reporting the bug. Please attach a sample document, as this makes it easier for us to verify the bug. 
(Please note that the attachment will be public, remove any sensitive information before attaching it. 
See https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F for help on how to do so.)

I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
Comment 2 Mustafa Kuscu 2018-10-12 13:24:26 UTC
Created attachment 145653 [details]
created on Mac, shape is not visible on Linux.
Comment 3 Mustafa Kuscu 2018-10-12 13:28:25 UTC
Created attachment 145654 [details]
more advanced case. see comment

created on Mac first
opened on Linux
  (Linux can't see the shape. same as file1 case)
add the same shape in Linux and save
  Mac can see the shape added by Linux. 
  But Mac can't see the shape added earlier by Mac. (But the shape in file1 is still visible on Mac)
Comment 4 Mustafa Kuscu 2018-10-12 13:35:26 UTC
Created attachment 145655 [details]
file2 saved again on Mac. Linux can't see the shapes added by mac.
Comment 5 Xisco Faulí 2019-04-12 10:21:52 UTC
A new major release of LibreOffice is available since this bug was reported.
Could you please try to reproduce it with the latest version of LibreOffice
from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to
'UNCONFIRMED' if the bug is still present in the latest version.
Comment 6 Mustafa Kuscu 2019-04-26 12:57:43 UTC
The bug still exists. Shapes created on Mac cannot be seen by the Linux.
Both are version 6.2.3.2
Comment 7 Mustafa Kuscu 2019-04-26 13:05:26 UTC
BTW I have unzipped the file and checked its contents.

When adding a shape on Linux, the shape has been embedded as a PNG file and is present in the Pictures subfolder.

However, when adding a shape on Mac, the shape IS NOT EMBEDDED BUT linked to a relative local path such as "../../../Applications/LibreOffice.app/Contents/Resources/gallery/people/Artist-Female1.png". 

I think this linking is the root cause, because the expected behavior would be to embed the PNGs.

HTH,

Mustafa
Comment 8 Xisco Faulí 2020-02-17 11:45:37 UTC
Hello Mustafa,
This is not an issue.
The problem is the image was inserted as a link ( see Edit - Link to External Files ) which points to file:///Applications/LibreOffice.app/Contents/Resources/gallery/people/Artist-Female1.png
Of course, if you open the document on Linux ( or any other computer ) the image won't be displayed.
Open the file with the mac computer,, go to Edit - Link to External Files and then use 'Break Link'.
Closing as RESOLVED NOTABUG