Bug 245525 - http links open from Kmail/Kopete/Akregator show a URL like "/var/tmp/kdecache-$USER/krun/2378.0." and are shown incorrectly (no CSS)
Summary: http links open from Kmail/Kopete/Akregator show a URL like "/var/tmp/kdecach...
Status: RESOLVED FIXED
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
: 109924 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-07-23 11:16 UTC by Iñaki Baz Castillo
Modified: 2014-05-14 16:24 UTC (History)
14 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
/usr/share/applications/kde4/konqbrowser.desktop (5.49 KB, text/plain)
2011-05-24 20:14 UTC, Alexander Potashev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Iñaki Baz Castillo 2010-07-23 11:16:16 UTC
Version:           unspecified (using KDE 4.4.2) 
OS:                Linux

Using Akregator, when I open a http link in my external browser (Konqueror) I get an URL like "/var/tmp/kdecache-$USER/krun/2378.0." instead of the public http URI. Of course CCS doesn't work so the page is shown really incorrectly.

Same occurs when clicking in a http link in Kmail or Kopete so it seems a general problem (perhaps related to kio, not sure however).

This annoying bug occurs from some time ago and still is present in KDE 4.4.2 (Kubuntu 10.04).

Reproducible: Didn't try

Steps to Reproduce:
Open i.e. Kopete and tell a contact to write you a http link to "http://www.google.com" in a IM.
Click the link.

Actual Results:  
Konqueror appears showing a URL like "/var/tmp/kdecache-$USER/krun/2378.0.", CSS doesn't work, the page is unusable.

Expected Results:  
Konqueror should open "http://www.google.com" as usual.
Comment 1 Wonko 2010-09-01 16:07:40 UTC
I was just about to report the same bug, I noticed this with kopete and kmail. I don't know since when this happens, because I have been using chromium for a while as standard browser. I just switched back to konqueror, and the problem showed up. It also happens when I select dillo as default browser in systemsettings, but does not happen with chromium, firefox, midori or opera.

I'm using KDE 4.5.0 with Gentoo on amd64.
Comment 2 Balcaen John 2010-09-18 14:24:21 UTC
it's happening here with kde 4.5.68
Comment 3 Iñaki Baz Castillo 2010-09-18 14:27:47 UTC
> --- Comment #2 from Balcaen John <mikala mandriva org>  2010-09-18 14:24:21 ---
> it's happening here with kde 4.5.68

A workaround to fix the issue is changing the KDE default web browser
(i.e., set "firefox") and then come back to konqueror.
Comment 4 Balcaen John 2010-09-18 14:43:59 UTC
this work around does not seems to works on kde 4.5.68 :/
Comment 5 Szczepan Hołyszewski 2010-10-08 21:48:38 UTC
Workaround doesn't work in KDE 4.5.2 either.
Comment 6 David Faure 2010-10-09 00:14:40 UTC
How exactly did you select konqueror as default browser? By typing konqueror in the lineedit, in `kcmshell componentchooser`, or by clicking the radiobutton "Open application based on contents of the URL"?

Can I get some debug output from the time you click on a link? (use kdebugdialog to enable debug output, if needed).

This sounds related to the changes that triggered bug 253294, but if it happens with konqueror then something else is wrong.
Comment 7 Gary L. Greene, Jr. 2010-10-09 22:36:42 UTC
Still exists in OpenSuSE with the KDE Unstable OBS version 4.5.71. The issue seems that KIO is passing a temporary file instead of the actual URL which is causing broken links and other unpleasentness. This effectively makes KDEPIM unusable for most mail that contain links.
Comment 8 partizan 2010-10-29 14:03:54 UTC
I get just the same issue here:
Qt: 4.7.0
KDE Development Platform: 4.5.2 (KDE 4.5.2)
KMail: 1.13.5

I get the same behavior even when i try to open the link from Psi jabber client.
The settings of the default browser doesnt seen to affect this in any way.
Comment 9 Alexey Tyapkin 2010-11-03 13:07:07 UTC
I have the same issue.
OS: Archlinux
kdenetwork-kopete 4.5.2-1
kdepim-kmail 4.4.7-1
qt 4.7.0-4

Default browser google-chrome set via control center.
Comment 10 Wonko 2010-11-07 15:05:21 UTC
I just re-compiled everything with gcc 4.5.1, and upgraded to KDE 4.5.3. And the problem is gone!
Comment 11 Dotan Cohen 2010-12-24 22:14:10 UTC
A quick way to test if you are suffering from this issue is to check the kde-open command:
$ kde-open http://dotancohen.com

See that the address in the browser starts with file:///var/tmp/kdecache-*

Now, contrast with other ways of opening URLs from the CLI:
$ gnome-open http://dotancohen.com
$ python -mwebbrowser http://dotancohen.com
Comment 12 Wonko 2010-12-25 01:47:17 UTC
This is working fine for me with KDE 4.5.4.
Comment 13 Iñaki Baz Castillo 2010-12-25 08:02:45 UTC
(In reply to comment #11)
> A quick way to test if you are suffering from this issue is to check the
> kde-open command:
> $ kde-open http://dotancohen.com
> 
> See that the address in the browser starts with file:///var/tmp/kdecache-*

Working ok for me in Kubnutu 10.10 (KDE 4.5.1).
Comment 14 Raphael Kubo da Costa 2010-12-25 16:53:24 UTC
Well, the bug can be closed now then. If you still experience it with KDE SC >= 4.5.3, please reopen.
Comment 15 Alexander Potashev 2010-12-25 16:58:15 UTC
I still experience this bug with KDE SC 4.6 Beta2 (4.5.85) and Kopete/KMail. But Konversation opens links correctly.

P.S.: I can't reopen this bug.
Comment 16 Alexander Potashev 2010-12-25 16:59:17 UTC
(In reply to comment #15)
> I still experience this bug with KDE SC 4.6 Beta2 (4.5.85) and Kopete/KMail.
> But Konversation opens links correctly.

My distro is Gentoo.
Comment 17 Raphael Kubo da Costa 2010-12-25 17:25:33 UTC
Well, reopening then.
Comment 18 Alexander Potashev 2010-12-25 17:27:46 UTC
Is it the same bug as #253547 ?
Comment 19 Dotan Cohen 2010-12-25 18:36:03 UTC
I can also confirm the issue in KDE 4.6 beta2.
Comment 20 Dawit Alemayehu 2011-01-14 18:09:42 UTC
This is not a kio_http issue as such changed product and component to be the same as bug# 253547.
Comment 21 Alexander Potashev 2011-05-08 08:53:39 UTC
"kde-open http://kde.org/" still opens a file in "/var/tmp/..." for me.
I have KDE SC 4.6.2, except for these packages that were built from Git yesterday: kdelibs, kde-baseapps, kde-workspace.
Comment 22 Wonko 2011-05-08 14:04:29 UTC
The problem does not show up here since my comment #10. In order to check if this is a configuration issue, could you try with a new user or with a moved .kde directory? Maybe even cleaning / moving /var/tmp/kdecache-$USER?
Comment 23 Alexander Potashev 2011-05-09 08:26:27 UTC
Works with clean $HOME and /var/tmp/. Closing then.
Comment 24 Alexander Potashev 2011-05-24 18:19:02 UTC
Let me tell my story of fixing the problem without cleaning $HOME.

I opened "System Settings" -> "File Associations" and selected "text/html" there. In the list of applications, there were two "Konqueror"s. One of them was on top of the list (it was konqbrowser.desktop, the command was "kfmclient openProfile webbrowsing"). I moved the other "Konqueror" (kfmclient_html.desktop, command "kfmclient openURL %u text/html") to the top of the list, and now Konqueror opens any URL correctly (without downloading into /var/tmp/...).
Comment 25 Dawit Alemayehu 2011-05-24 20:09:27 UTC
(In reply to comment #24)
> Let me tell my story of fixing the problem without cleaning $HOME.
> 
> I opened "System Settings" -> "File Associations" and selected "text/html"
> there. In the list of applications, there were two "Konqueror"s. One of them
> was on top of the list (it was konqbrowser.desktop, the command was "kfmclient
> openProfile webbrowsing"). I moved the other "Konqueror"
> (kfmclient_html.desktop, command "kfmclient openURL %u text/html") to the top
> of the list, and now Konqueror opens any URL correctly (without downloading
> into /var/tmp/...).

konqbrowser.desktop should not show up in that list because it does not have the "MimeType=" entry. The fact that it does for you means that either the file has been modified to contain the "MimeType=" property by your distribution or it is somehow being installed in the incorrect location ?? Either way, you might want to find out the source and report it to your distro. For reference on my system (ArchLinux), konqbrowser.desktop is installed under /usr/share/applications/kde4/.
Comment 26 Alexander Potashev 2011-05-24 20:14:50 UTC
Created attachment 60282 [details]
/usr/share/applications/kde4/konqbrowser.desktop

It's in /usr/share/applications/kde4/konqbrowser.desktop. The file doesn't contain "MimeType=" (see attachment).
Comment 27 Alexander Potashev 2011-05-24 20:16:44 UTC
By the way, konqbrowser.desktop might have been left over after numerous manual installations from Git.
Comment 28 Dawit Alemayehu 2011-05-24 21:28:18 UTC
*** Bug 109924 has been marked as a duplicate of this bug. ***
Comment 29 Dotan Cohen 2011-08-25 18:58:06 UTC
To get KDE to open URLs in Firefox directly without /var/tmp/... I had to set the path to "/usr/bin/firefox" instead of simply "firefox". This could be done in either one of these two places:

System Settings -> Default Applications -> Web Browser -> This Browser

- or, if the above is set to "Depending on content", then  -

System Settings -> File Associations -> HTML
Comment 30 Murph Finnicum 2014-05-14 16:24:55 UTC
I had this problem w/ chrome on Gentoo.

I had to change the entry under the file associations to "/usr/bin/google-chrome-beta %U" instead of just "/usr/bin/google-chrome-beta".