Bug 83142 - Link to inserted Draw object ignored when saved as Flat ODT (becomes embedded)
Summary: Link to inserted Draw object ignored when saved as Flat ODT (becomes embedded)
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords: dataLoss, filter:fodt
: 89353 (view as bug list)
Depends on:
Blocks: OLE-Objects ODF-Flat
  Show dependency treegraph
 
Reported: 2014-08-27 12:32 UTC by nroos
Modified: 2023-04-08 09:47 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nroos 2014-08-27 12:32:59 UTC
When inserting a Draw object as a link into a document, the link is ignored and the whole object is inserted:

1. Open the Draw program
2. Draw a line
3. Save as "testfile.odg"
4. Open the Writer program
5. Menu Insert -> Object -> OLE Object...
6. Select "Create from file", activate "Link to file", select created testfile.odg
7. Save document as "testdoc.fodt" in flat file format
8. Take a look at testdoc.fodt (with cat, less, editor...)

Current behavior:

The Draw object is not inserted as a link, but as a whole. There is no "testfile" string in the file.

Expected behavior:

The document should only contain a pointer to the testfile.odg, not the object itself.

When saving the drawing in flat file format, too, it does not change the behaviour.

Strange that this happens, as i have definitely seen it already working, but i don't know if it was the same version.

              
Operating System: Ubuntu
Version: 4.2.4.2 release
Comment 1 sophie 2014-09-24 13:27:00 UTC
Hi, I can reproduce with saving in .fodt that the link is not saved, but not when saving in .odt. Reading the content.xlm I get:
<draw:object xlink:href="../testfile.odg" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/><draw:image xlink:href="./ObjectReplacements/Object 1" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>.
I let it as unconfirmed. Tested with 4.3.2.1 Ubunt 14.04 x64 - Sophie
Comment 2 Buovjaga 2014-11-14 09:24:09 UTC
Reproduced.

Win 7 64-bit Version: 4.4.0.0.alpha2+
Build ID: b021b5983c62e266b82d9f0c5c6d8d8900553827
TinderBox: Win-x86@39, Branch:master, Time: 2014-11-12_01:10:08
Comment 3 Buovjaga 2015-01-11 06:57:23 UTC
This happens already in 3.3.0

Ubuntu 14.10 64-bit
LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
Comment 4 QA Administrators 2016-01-17 20:02:38 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2017-03-06 13:56:08 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2019-12-03 14:19:59 UTC Comment hidden (obsolete)
Comment 7 Thomas Lendo 2020-08-16 23:41:20 UTC
Reproducible with

Version: 7.1.0.0.alpha0+
Build ID: <buildversion>
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3
Locale: de-DE (de_DE.UTF-8); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2020-08-05_04:03:50
Calc: threaded
Comment 8 QA Administrators 2022-08-17 03:34:43 UTC Comment hidden (obsolete)
Comment 9 Stéphane Guillou (stragu) 2023-04-08 09:41:08 UTC
*** Bug 89353 has been marked as a duplicate of this bug. ***
Comment 10 Stéphane Guillou (stragu) 2023-04-08 09:47:59 UTC
Still reproducible in recent master build:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 23bd3bd10e74b0c23c2654d02d7d830e7693adac
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded