Bug 76771 - Links from emails open twice
Summary: Links from emails open twice
Status: RESOLVED WORKSFORME
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Stephan Kulow
URL:
Keywords: needs_verification
: 74954 87264 94338 152557 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-03-05 00:07 UTC by Jackson Miller
Modified: 2009-12-09 16:05 UTC (History)
7 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 Jackson Miller 2004-03-05 00:07:57 UTC
Version:            (using KDE KDE 3.2.0)
Installed from:    Gentoo Packages
OS:          Linux

When opening a link from the kmail message window, it gets the link twice.

I know this becuase I develop an email application that includes link tracking and links clicked from kmail always report double.

I am guessing this could have to do with some type of mime-type checking to know which application to open, but it would be nice to avoid getting the document twice.

-jackson
Comment 1 Ingo Klöcker 2004-03-06 16:08:22 UTC
We open links with KRun( url ). So this would need to be changed in the libraries.
Comment 2 Lubos Lunak 2004-12-06 13:28:36 UTC
*** Bug 94338 has been marked as a duplicate of this bug. ***
Comment 3 Lubos Lunak 2004-12-06 13:29:00 UTC
*** Bug 87264 has been marked as a duplicate of this bug. ***
Comment 4 Lubos Lunak 2004-12-06 13:29:25 UTC
*** Bug 74954 has been marked as a duplicate of this bug. ***
Comment 5 Frank 2005-01-15 09:33:13 UTC
This is causing problems with FUDForum's password reset feature. When a user clicks on a URL, it is opened twice, so the user get error: "Invalid password reset key".
Comment 6 Kevin Krammer 2005-04-09 16:58:39 UTC
I change this to confirmed.

I am quite certain that it is a result of the KIO::get KRun performs in KRun::scanFile() to determine the MIME type.

A user asked about the similar problem on the mailinglist "kde" (http://lists.kde.org/?t=111260427700002&r=1&w=2), in his case about a double request when using minicli.

Some ideas we gathered in the thread, like using HTTP HEAD instead of GET to determine the MIME type or disabling cookies, will likely not work when the session information is encoded in the URL.

A possible workaround could be to use the external browser feature with Konqueror as the browser as this skips MIME detection (unless I missed something important while looking through krun.cpp)

Maybe kio_http could cache the document for the next request independend of the usual cache settings.
Comment 7 Tim Hutt 2006-12-27 17:40:29 UTC
This also messes up blogger:

http://www.blogger.com/p.g?k=*P400EdtgsGKhq8FLX&u=9433710

Can't it just detect http:// or ftp:// and open it in konqueror?

Damn MIME detection! It doesn't work half the time anyway due to rubbish web servers.
Comment 8 Thomas Tanghus 2007-02-28 01:20:22 UTC
I can confirm this on a site I am developing (http://www.medicintest.dk).
When you want to unsubscribe from /unsubscribe.php you get a mail with a link within containing a confirmation code. This link is loaded twice thus giving an error. It works fine if you paste the link in the location bar.
WARNING: The site is in Danish but it should be kinda self explanatory.

KDE Version  3.5.5 (KDE 3.5.5, Kubuntu (dapper) 4:3.5.5-0ubuntu1~dapper2)
Operating System  Linux (i686) release 2.6.15-28-686
Compiler  Target: i486-linux-gnu
Comment 9 Jonathan Marten 2007-11-19 17:30:17 UTC
*** Bug 152557 has been marked as a duplicate of this bug. ***
Comment 10 Chris van de Wouw 2007-11-20 12:49:08 UTC
yay, this is an old bug, which leaves me puzzled why this is not fixed yet.

I lost a lot of time developing confirmation software, 'cause clicking on the verification link in the received mail gave me the answer the verification request was invalid.

Thinking back I can remember numerous times confirming registrations that gave me odd feedbacks, which probably related to this bug.

I think this bug will hit 95% of the users of kmail at least once, with a high probability of bad user experience. Also the bug is easy to reproduce with <alt>-F2 'run command' -> http://localhost/  , which will produce a double entry in the access.log file of apache. Consecutive requests might sometimes only generate 1 entry in the logfile, perhaps because of some caching.

Anyway, because activation mails and alike are pretty common these days, I think it is really important this bug gets some extra attention. Therefore vote added!
Comment 11 FiNeX 2008-11-17 13:19:26 UTC
Using current trunk Kmail, clicking on an URL in a message window, opens only one browser window, which is right to me.

What should I do for trying to reproduce the reported bug?
Comment 12 S. Burmeister 2008-11-17 13:28:47 UTC
For me it opens the download-progress window (first time the url is opened) and after that the browser starts and opens the page (second time the url is opened).
Comment 13 Chris van de Wouw 2008-11-17 18:33:52 UTC
I just did several test with kde 3.5.10 and I cannot reproduce the behavior I described in comment #10. Seems it is fixed to me.
Comment 14 FiNeX 2008-12-07 19:03:38 UTC
@Sven: it opens a progress bar to me too (on the new plasma notifier).
Comment 15 Bruno Bigras 2009-07-31 13:01:39 UTC
There was a progress bar issue with kmail and https links which was recently fixed and backported to 4.3. Bug 198671

Can anyone reproduce this bug (the link open twice or the progress bar issue) with KDE 4.3 RC3 or a more recent version?
Comment 16 Bruno Bigras 2009-12-09 16:05:21 UTC
this look a bit like bug 87361

I'm closing this bug since nobody in the CC list seems to be able to reproduce this. Feel free to reopen if you can reproduce it with KDE 4