Bug 152047 - Graphics disappear when document moved in another folder
Summary: Graphics disappear when document moved in another folder
Status: RESOLVED DUPLICATE of bug 111957
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.2.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-14 22:32 UTC by software.v9onn
Modified: 2022-12-01 10:19 UTC (History)
1 user (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 software.v9onn 2022-11-14 22:32:35 UTC
Description:
When graphics are inserted as a hyperlink, the url changes when the document is moved to another folder. It's not possible to correct the url manually, graphics don't show again.


Steps to Reproduce:
graphics in folder file:///Z:/Grafik/logo.svg
file in folder Z:/Docs
file moved to Z:/Docs/test
graphics url changes to file:///Z:/Docs/Grafik/logo.svg


Actual Results:
graphics url changes to file:///Z:/Docs/Grafik/logo.svg

Expected Results:
Graphic url should not change automatically, especially not to a folder that doesn't exist.
When changing url manually, graphic should be displayed again.


Reproducible: Always


User Profile Reset: No

Additional Info:
-
Comment 1 m_a_riosv 2022-11-15 08:04:21 UTC
Please test how you have the option:
Menu/Tools/Option/Load-Save/General - Save URL relative to file system.
https://help.libreoffice.org/7.5/en-US/text/shared/optionen/01010200.html?&DbPAR=WRITER&System=WIN
Comment 2 software.v9onn 2022-11-15 09:35:18 UTC
This option seems to address the problem, but I don't understand why it's a general option. If I insert a graphic with the option "link", it's always inserted as an absolute url, independent from the option settings.

Wouldn't it be better to ask the user when he inserts the graphic, if he wants an absolute or relative url? Then only relative urls should be altered when moving the file.
Comment 3 m_a_riosv 2022-11-15 19:58:38 UTC
Because of the option, it's not for document but general.

LibreOffice always shows the whole path, no matter what the option status. But if relative, the path complete path it's showed properly adapted.
Comment 4 software.v9onn 2022-11-15 20:47:15 UTC
Strange behaviour. I can decide for every single graphic whether I embed it or link it. Why I should not decide whether the link is relative or absolute?
It makes no sense to decide that for all documents.
And why are relative links shown as absolute links???
Comment 5 m_a_riosv 2022-11-15 21:46:11 UTC
How hard to read some words. Bye.
Comment 6 software.v9onn 2022-11-16 08:17:51 UTC
I red all words and don't understand it.
I can't even figure out if a link in a document is relative or absolute.
What if you open a document from another PC with other general settings?
Will all the links in it then be converted?
Comment 7 Stéphane Guillou (stragu) 2022-11-21 17:00:50 UTC
As m.a.riosv explained, the behaviour is expected. You might be interested in this other report, related to the display of relative links, which should hopefully clarify if links are relative or absolute: bug 128216.

For now, I am closing this specific report as "not a bug".
Comment 8 software.v9onn 2022-11-23 17:10:31 UTC
No, its NOT solved. Give me an explanation why it should be an expected behaviour??? Bug 128216 describes the problem in detail, but ist's also NOT solved.
The solution ist very easy: let the user choose between inserting an absolute or relative link to the graphic.
Show relative links as: ../link/graphic
Show absolute links as: C:/link/graphic
Comment 9 Stéphane Guillou (stragu) 2022-12-01 00:03:33 UTC
I marked this bug report as "solved - not a bug" because that is the language we have to use on this platform to categorise a report that describes a behaviour that works as intended.

You are right, the issue you describe in your last comments is not yet solved. It is however already discussed in other, older  bug reports. I mentioned bug 128216, which is about clarifying the display of relative links, but there is also an enhancement request that (if a developer decides to work on it) should make the situation better: bug 111957.

Happy to mark your report as a duplicate of the enhancement request instead. Please feel free to participate in the conversation there.

*** This bug has been marked as a duplicate of bug 111957 ***
Comment 10 software.v9onn 2022-12-01 04:03:29 UTC
I cannot believe that: 10 years discussions about inserting relative links?
The first thread goes back to 2012!!!! So we have a link jubilee!!
As far as I've skimmed the topic, I did not find a single reason why inserting absolute and relative links shouldn't work on document level....
Comment 11 Stéphane Guillou (stragu) 2022-12-01 10:19:15 UTC
(In reply to software.v9onn from comment #10)
> I cannot believe that: 10 years discussions about inserting relative links?
> The first thread goes back to 2012!!!! So we have a link jubilee!!
> As far as I've skimmed the topic, I did not find a single reason why
> inserting absolute and relative links shouldn't work on document level....

Please note that most contributors to LibreOffice are volunteers. If you have nothing constructive to contribute to the discussion, or a patch to improve the situation, we'd appreciate it if you could refrain from commenting.