Bug 76293 - When using LO Dialogs Http locations for images can not been used
Summary: When using LO Dialogs Http locations for images can not been used
Status: CLOSED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.2.2.1 release
Hardware: Other All
: high major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected
Depends on:
Blocks: LO-File-Dialog
  Show dependency treegraph
 
Reported: 2014-03-17 20:32 UTC by Fernand
Modified: 2022-01-24 10:57 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
doc with linked image (22.64 KB, application/vnd.oasis.opendocument.text)
2014-03-21 22:24 UTC, Fernand
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fernand 2014-03-17 20:32:08 UTC
When using the options to use LibreOffice Dialogs instead of Sytem Dialogs.
Viewing , opening or insert a image from a Http Location is not working



Trie to insert the image from
"http://pmg.pmgroup.be/enews/idb/grafiek9.jpg"
it wil fails if you use LibreOffice Dialogs 
change to System Dialogs and you can insert the image
Comment 1 A (Andy) 2014-03-21 22:01:48 UTC
for me not reproducible with LO 4.2.2.1 (Win 8.1)
Or did I anything wrong?

Steps Done:
1. WRITER
2. Insert an image from a web page -> this works
3. Go to TOOLS -> OPTIONS
4. Go to LIBREOFFICE -> GENERAL and activate USE LIBREOFFICE DIALOGS
5. Insert an image from a web page -> and this works also
Comment 2 Fernand 2014-03-21 22:24:18 UTC
Created attachment 96191 [details]
doc with linked image

when opening with the options set to use System Dialogs you will sea a dog
when opnening with the options set to use LO Dialogs you will sea a empty image with  a read error to a Http link
Comment 3 Fernand 2014-03-21 22:26:26 UTC
No but problay you "embed" the image in the writer doc , insert the picture with a link (as needed to publish te doc as a HTMl doc , then the image cant been opened when you use LO Dialogs.
change to system dialogs , the image will been showed, save and change to LO Dialogs and the image is still there but only showed with a "read error just showing the link to he image.
When making a html doc and openening in the browser the image will show up because we are linking to a real imageTest wit my attachement
Comment 4 A (Andy) 2014-03-22 09:12:22 UTC
Thank you for your fast reply.
Which system are you using?  How can you insert an image as a link and not as embedded?  Can you please give more information about all the different single steps to reproduce your file.


What I can reproduce with your file:

1. Open the attached file
Result: Only a link but no picture is visible.

2. Close LO
3. Open the LO Startcenter
Result: In the preview the picture (dog) is visible.
-> This is already buggy if you compare it with step 4.

4. Select this preview file
Result: Only a link but no picture is visible.

5. Go to TOOL -> OPTIONS -> LIBREOFFICE section -> General
6. Deactivate "Use LibreOffice dialogs"
Result: Only a link but no picture is visible.

7. Go to FILE -> SAVE AS and save the file under a new name
Result: The Picture (a dog) is visible.
-> Marked this bug report as Confirmed/New


Reproducing with a new file.  
@Fernand: Please inform if there is any mistake or misunderstanding.

1. Open WRITER
2. Go to TOOL -> OPTIONS -> LIBREOFFICE section -> General
3. Activate "Use LibreOffice dialogs" and press OK
4. Select any picture of a webpage and make a right mouse click and copy it into the clipboard
5. Go to the WRITER document and go to EDIT -> PASTE or PASTE SPECIAL with BITMAP
Result: The picture is visible.

6. Go to the webpage with the picture and select the URL and make a right mouse click to copy it
7. Go to the WRITER document and make a right mouse click on the inserted picture and go to PICTURE -> tab PICTURE
8. Place the mouse cursor in the field Link / File Name and make a right mouse click and select Paste to insert the link and press OK
9. Go to FILE -> SAVE AS and save the file
10. Close LO
11. Open the saved file
Result: At the beginning no picture is visible, only a link.  Now wait.  It takes around 30 second then you see Read Error for a few seconds and afterwards you see the picture.
-> For me this bug is not that way reproducible with a new file, but I have to wait quite long until the picture is visible.
Comment 5 A (Andy) 2014-03-22 09:14:38 UTC
Changed the importance to Critical, because Blocker is probably a litte bit too much
Comment 6 Fernand 2014-03-22 11:05:06 UTC
Andy,

checked on Windows all versions

For reproducing you must "not embedded" the iamge

embedding take place when copying a picture like you did (first case)

a image is also embedded when using "insert image" (second case) but in the dialog who opens to locate the file you must activate the LINK checkbox
This checkbox is on a different places in the Dialog , depending on the choise of using LO dialogs or System Dialogs
When not checking the Link box you simply embed te picture in the document, and that can takes some time to copying the image from the Http location to the internal stogage off your doc.


Greetz

Fernand

Its a "blocker" and a "regression" for all documents who uses HTTP links and are intended to produce html docs.
Comment 7 A (Andy) 2014-03-22 11:41:11 UTC
@Fernand: Thanks.  Now I got it.

Reproducible also with a new file:

Steps to Reproduce:
1. Open WRITER
2. Go to TOOL -> OPTIONS -> LIBREOFFICE section -> General
3. Activate "Use LibreOffice dialogs" and press OK
4. Go to INSERT -> IMAGE -> FROM FILE
5. Check LINK and copy the link from the picture in the in this bug attached document into FILE NAME and press OPEN
6. Select KEEP LINK
Result: The picture is inserted and visible.

7. Go to FILE -> SAVE AS and save this file as odt
8. Close LO
9. Open the saved file with LO
Result: Only a link but no picture is visible.

10. Go to TOOL -> OPTIONS -> LIBREOFFICE section -> General
11. Deactivate "Use LibreOffice dialogs" and press OK
Result: Only a link but no picture is visible.

12. Go to FILE -> SAVE AS and save this file as odt
Result: The picture is visible.

The same problem seems to occur if you exchange the order of step 3 and 11. 


Regarding the importance: This is really a major bug and needs a high importance and focus.  I only reduced it a little bit, because you can currently make a "workaround" by embedding the picture.


@Michael: What do you think about this?
Comment 8 Fernand 2014-03-22 13:14:12 UTC
Andy,

thanks , but there is no real workaround , embeded images can NOT been used in most HTML documents . I now image can sinds 4.2  been included in a HTML doc , but only gif's
All older documents and other image formats wil suffer from this bug

he only workaround in not using LO dialogs at the moment of insertion and stick to this option all the way.
What not Always can because a lot of API code do not works with System Dialogs
Comment 9 Joel Madero 2015-05-02 15:43:09 UTC Comment hidden (obsolete)
Comment 10 Gordo 2015-05-14 14:38:45 UTC
Could not insert an image as stated in the original description.

When using LO dialogue I got an "Image file cannot be opened" dialogue.  This is after step 6 in comment 7.

Could not reproduce comment 2.

Version: 4.4.3.2
Build ID: 88805f81e9fe61362df02b9941de8e38a9b5fd16
Comment 11 QA Administrators 2016-09-20 09:41:44 UTC Comment hidden (obsolete)
Comment 12 QA Administrators 2020-10-14 04:30:48 UTC Comment hidden (obsolete)
Comment 13 businessnewspost 2021-05-15 18:32:02 UTC Comment hidden (spam)
Comment 14 ustrendingnews 2021-05-16 07:27:34 UTC Comment hidden (spam)
Comment 15 ustrendingnews 2021-05-16 07:30:00 UTC Comment hidden (spam)
Comment 16 kora star 2021-09-21 23:40:49 UTC Comment hidden (spam)
Comment 17 Ross Johnson 2021-10-03 11:49:30 UTC
(In reply to A (Andy) from comment #7)
> @Fernand: Thanks.  Now I got it.
> 
> Reproducible also with a new file:
> 
> Steps to Reproduce:
> 1. Open WRITER
> 2. Go to TOOL -> OPTIONS -> LIBREOFFICE section -> General
> 3. Activate "Use LibreOffice dialogs" and press OK
> 4. Go to INSERT -> IMAGE -> FROM FILE
> 5. Check LINK and copy the link from the picture in the in this bug attached
> document into FILE NAME and press OPEN
> 6. Select KEEP LINK
> Result: The picture is inserted and visible.
> 
> 7. Go to FILE -> SAVE AS and save this file as odt
> 8. Close LO
> 9. Open the saved file with LO
> Result: Only a link but no picture is visible.

Following the above steps I get the same result in:

Version: 7.2.0.4 (x64) / LibreOffice Community
Build ID: 9a9c6381e3f7a62afc1329bd359cc48accb6435b
CPU threads: 12; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win
Locale: en-AU (en_AU); UI: en-US
Calc: threaded

I got only the link shown as described in [comment 7].


But in:

Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 7b31f7428a1469fa823538fe5cf9cf36bbe2df68
CPU threads: 12; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win
Locale: en-AU (en_AU); UI: en-US
Calc: threaded

Built from master branch pulled Oct 2nd, 2021.

Following steps 1 to 9 I get the image displayed after about 5 seconds. Repeated the same thing several times with the same result. Repeated the steps with a different image from a different web site also successful.
Comment 18 Armod 2021-12-20 19:18:37 UTC Comment hidden (spam)
Comment 19 Timur 2022-01-24 10:56:10 UTC
This bug report wasn't correct, image was not attached. 
And it seems like some specific problem, I dont' repro with some other image in Lo 4.2 with LO dialog. 
Based on that and Comment 17 I will close this bug. 
If it is still reproducible, test if with any image or specific type or just a specific image and explain and set New again.
Comment 20 Timur 2022-01-24 10:57:20 UTC
Note: if bug is reproducible, open a new bug with steps like Comment 7 and trouble image. This one is spammed.