Bug 359058 - Regression: Drag-n-drop of (Image-)URLs from Chromium does not work in kMail 5.0.x any more
Summary: Regression: Drag-n-drop of (Image-)URLs from Chromium does not work in kMail ...
Status: CONFIRMED
Alias: None
Product: kmail2
Classification: Applications
Component: composer (show other bugs)
Version: 5.1
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-06 10:11 UTC by Gunter Ohrner
Modified: 2022-11-05 17:59 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gunter Ohrner 2016-02-06 10:11:27 UTC
If I drag and drop images from Chromium to the kMail editor, the mouse cursor will indicate that the image could be dropped, but if I drop it, nothing happens.

I would expect the image to be added as an attachment.

Likewise, if I copy the URL and paste it into the message editor, I get a popup menu asking if the URL should be pasted as text or the referenced file be added as an attachment. If a chose "Add file as an attachment", also nothing happens.

I would also expect the referenced file to be added as an attachment - just as the text in the popup menu says...

I know there was a similar bug for pasting the URL as text IIRC which was actually caused by a bug in the underlying Qt libs and was fixed using a workaround. Unfortunately, I was not able to find this bug again.

Possibly, this bug's cause is related and the "attach URL" code would need a similar workaround?

Reproducible: Always
Comment 1 Gunter Ohrner 2016-02-06 10:13:03 UTC
Uhm, application versions:

* kMail 5.0.3 from KDE Applications 15.08.3
   (There do not appear to be more recent binaries for (k)Ubuntu.)
* Qt 5.5.1
Comment 2 Laurent Montel 2016-02-29 20:46:49 UTC
5.0.3 is very old.
In 5.1.x when we dnd we insert url in composer so it seems ok now
Comment 3 Peer Frank 2016-05-12 17:53:10 UTC
(In reply to Laurent Montel from comment #2)
> 5.0.3 is very old.
> In 5.1.x when we dnd we insert url in composer so it seems ok now

nope, does'nt work with 5.1.3
Comment 4 Gunter Ohrner 2016-05-13 07:23:17 UTC
For me, kMail 5.1.3 inserts the image URL as text and some character garbage (URL-encoded UTF-16 as ASCII, or something, see below...)

It does not ask whether to paste the address as text or to attach the actual file.

If I now copy the image URL in chrome (right-click -> copy image url) and paste it into the editor, it just pasts the URL string and does not ask if it should add the linked file as an attachment instead. (IIRC it did so in previous kMail versions.)

All stated holds for the plain text editor. (I do not use the HTML / richt text editor.)

Software:
kMail Version 5.1.3
KDE Frameworks 5.18.0
Qt 5.5.1 (kompiliert gegen 5.5.1)
Das xcb Fenstersystem


Example:

If I go to http://www.ohrner-it.com/ and drag the company logo on the top left of the page to the plain text editor, the following will be pasted (the text between the lines):

----------------------------------------------------------------------------------------------
http://www.ohrner-it.com/images/logo.png
%00O%00h%00r%00n%00e%00r%00 %00I%00T%00 %00G%00m%00b%00H
----------------------------------------------------------------------------------------------

This looks quite wrong to me...
Comment 5 Justin Zobel 2022-10-21 00:17:38 UTC
Thank you for reporting this bug in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "CONFIRMED" when replying. Thank you!
Comment 6 Gunter Ohrner 2022-10-21 07:26:40 UTC
(In reply to Justin Zobel from comment #5)
> If you can reproduce the issue, please change the status to "CONFIRMED" when
> replying. Thank you!

Due to too many bugs in kMail some years ago I stopped using it and switched to Thunderbird. I was not happy to have to make that choice, but since then at least I didn't lose access to my mails any more because some maintenance update does not work at all - as it happened more than once with kMail unfortunately. :-(

So I cannot re-test.
Comment 7 Bug Janitor Service 2022-11-05 05:07:57 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Gunter Ohrner 2022-11-05 17:59:29 UTC
Re-tested with 

KMail
Version 5.21.2 (22.08.2)
KDE Frameworks 
Version 5.99.0
Qt 
Version 5.15.7 (kompiliert gegen 5.15.6)
Das Fenstersystem xcb

It still does not work:

* Dragging an image from Chrome into the text editor does nothing. The mouse cursor indicates that the image can be dropped ("plus" symbol), but this does not work.
* Pasting the URL meanwhile only adds the URL, the popup mentioned on the original report does not seem to exist any more. This may not be a bug, but just a change in behaviour.
* Copy-Pasting the image from Chrome into the editor does not add the actual image, just a tiny "paper sheet" icon - no idea what's that supposed to mean, but pasting the image does not work.