Bug 362937

Summary: Drag and drop https uri images from Firefox to Krita canvas not possible (unknown protocol)
Product: [Applications] krita Reporter: mvowada <freebox64>
Component: UsabilityAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: griffinvalley, halla
Priority: NOR    
Version First Reported In: 3.0 Beta   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Video example (Krita 3.0 beta and 2.9.6)

Description mvowada 2016-05-11 11:30:55 UTC
(This happens for me, using "Firefox" version 46.0 on "Ubuntu" Unity LTS 14.04)
Not sure if it's as expected but I've noticed that:

- it's not possible to drag and drop a JPG image
- located at an "https" web uri,
- from the Firefox browser, directly to Krita canvas.

A Krita alert box (white cross on red circle) says e.g.:

Could not download https://upload.wikimedia.org/wikipedia/commons/thumb/8/8b/Piquero_patiazul_%28Sula_nebouxii%29Protocol "https" is unknownC_isla_LobosProtocol "https" is unknownC_islas_GalápagosProtocol "https" is unknownC_EcuadorProtocol "https" is unknownC_2015-07-25Protocol "https" is unknownC_DD_35.JPG/256px-Piquero_patiazul_%28Sula_nebouxii%29Protocol "https" is unknownC_isla_LobosProtocol "https" is unknownC_islas_GalápagosProtocol "https" is unknownC_EcuadorProtocol "https" is unknownC_2015-07-25Protocol "https" is unknownC_DD_35.JPG: Protocol "https" is unknown

Reproducible: Always

Steps to Reproduce:
1. Load a JPG image from an "https" web url in Firefox (find one at https://wikimedia.org/)
2. drag and drop the image to Krita canvas
3. choose to insert as layer or open in a new document (it makes no difference)

Actual Results:  
Not possible to open the JPG image in Krita.
An alert box says that Protocol "https" is unknown.

Expected Results:  
Place the image as layer or new document.
Comment 1 wolthera 2016-05-11 11:41:52 UTC
Hey mvowada,

On ubuntu 16.04 with firefox 16.04 and Krita master I am able to open these two images in Krita:

https://www.gardenorganic.org.uk/sites/www.gardenorganic.org.uk/files/organic-weeds/white_campion.jpg
http://chestofbooks.com/flora-plants/flowers/Illustrated-Flora-2/images/4-Silene-Latifolia-Mill-Britten-Rendle-Bladder-Cam-146.jpg

Maybe it's a ubuntu problem? Can you check again once the second beta is out?
Comment 2 Halla Rempt 2016-05-11 12:51:59 UTC
A lot of websites, including wikipedia actually put a bunch of html instead of an image in the drag object -- and then we're stuck.
Comment 3 mvowada 2016-05-11 13:03:06 UTC
Created attachment 98914 [details]
Video example (Krita 3.0 beta and 2.9.6)

Hi Wolthera, thanks for the reply.

It happens with an appimage here: krita-3.0-Beta-master-8c5e55e-x86_64.appimage.

With Krita 2.9.6 I'm able to drag and drop with Firefox.

(See video in attachment)
Comment 4 mvowada 2016-05-18 13:56:17 UTC
Hi. I've checked in Krita 3.0 RC1 (appimage), it seems the issue is still there.
Comment 5 Halla Rempt 2018-05-01 12:13:56 UTC
Works for me with the 4.0.1 appimage. Probably because we dropped disabling ssl in the new appimage setup.
Comment 6 mvowada 2018-05-01 17:45:18 UTC
(In reply to Boudewijn Rempt from comment #5)
> Works for me with the 4.0.1 appimage. Probably because we dropped disabling
> ssl in the new appimage setup.

Hi, yes, I can confirm it's solved in Krita 4.1.0-pre-alpha (git 2e8cf39).
Thank you Boudewijn!