Bug 74954

Summary: upon clicking a link the http GET request to the url is being sent out twice.
Product: [Unmaintained] kio Reporter: Joachim Bauernberger <joachim.bauernberger>
Component: generalAssignee: David Faure <faure>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version First Reported In: 3.2   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Joachim Bauernberger 2004-02-11 15:03:26 UTC
Version:            (using KDE KDE 3.2.0)
Installed from:    Compiled From Sources
Compiler:          2.95.4 -fomit-frame-pointer -O3 -fast-math -funroll-loops
OS:          Linux

Checked with tcpdump:
14:49:40.205245 IP jmbdev.internal.friendscout24.de.41674 > www.friendscout24.de.www: P 0:869(869) ack 1 win 5840
0x0000   0001 0205 077e 0001 021e 7a2c 0800 4500        .....~....z,..E.
0x0010   038d a8a2 4000 4006 fac1 0a00 a3eb d412        ....@.@.........
0x0020   1209 a2ca 0050 4eb6 f1a6 743c bae1 5018        .....PN...t<..P.
0x0030   16d0 a194 0000 4745 5420 2f63 6769 2d62        ......GET./cgi-b
0x0040   696e 2f69 7677 2f43 502f 302f 3430 2f31        in/ivw/CP/0/40/1
0x0050   3032 2f32 3631 3236 3633 2f30 2f31 3330        02/2612663/0/130
0x0060   3030 2f30 2048 5454 502f 312e 310d 0a43        00/0.HTTP/1.1..C
0x0070   6f6e 6e65 6374 696f 6e3a 204b 6565 702d        onnection:.Keep-
0x0080   416c 6976 650d 0a55 7365 722d 4167 656e        Alive..User-Agen
0x0090   743a 204d 6f7a 696c 6c61 2f35 2e30 2028        t:.Mozilla/5.0.(
0x00a0   636f 6d70 6174 6962 6c65 3b20 4b6f 6e71        compatible;.Konq
0x00b0   7565 726f 722f 332e 323b 204c 696e 7578        ueror/3.2;.Linux
0x00c0   2920 284b 4854 4d4c 2c20 6c69 6b65 2047        ).(KHTML,.like.G
0x00d0   6563 6b6f 290d 0a41 6363 6570 743a 2069        ecko)..Accept:.i
0x00e0   6d61 6765 2f78 2d70 6f72 7461 626c 652d        mage/x-portable-
0x00f0   6269 746d 6170 2c20 696d 6167 652f 782d        bitmap,.image/x-
0x0100   7063 782c 2069 6d61 6765 2f78 2d78 626d        pcx,.image/x-xbm
0x0110   2c20 696d 6167 652f 782d 7461 7267 612c        ,.image/x-targa,
0x0120   2069 6d61 6765 2f78 2d69 636f 2c20 696d        .image/x-ico,.im
0x0130   6167 652f 706e 672c 2069 6d61 6765 2f78        age/png,.image/x
0x0140   2d70 6f72 7461 626c 652d 7069 786d 6170        -portable-pixmap
0x0150   2c20 696d 6167 652f 6a70 6567 2c20 696d        ,.image/jpeg,.im
0x0160   6167 652f 782d 7870 6d2c 2069 6d61 6765        age/x-xpm,.image
0x0170   2f78 2d65 7073 2c20 696d 6167 652f 7469        /x-eps,.image/ti
0x0180   6666 2c20 696d 6167 652f 782d 626d 702c        ff,.image/x-bmp,
0x0190   2069 6d61 6765 2f67 6966 3b71 3d30 2e35        .image/gif;q=0.5
0x01a0   2c2a 2f2a 3b71 3d30 2e31 0d0a 4163 6365        ,*/*;q=0.1..Acce
0x01b0   7074 2d45 6e63 6f64 696e 673a 2078 2d67        pt-Encoding:.x-g
0x01c0   7a69 702c 2078 2d64 6566 6c61 7465 2c20        zip,.x-deflate,.
0x01d0   677a 6970 2c20 6465 666c 6174 652c 2069        gzip,.deflate,.i
0x01e0   6465 6e74 6974 790d 0a41 6363 6570 742d        dentity..Accept-
0x01f0   4368 6172 7365 743a 2069 736f 2d38 3835        Charset:.iso-885
0x0200   392d 3135 2c20 7574 662d 383b 713d 302e        9-15,.utf-8;q=0.
0x0210   352c 202a 3b71 3d30 2e35 0d0a 4163 6365        5,.*;q=0.5..Acce
0x0220   7074 2d4c 616e 6775 6167 653a 2065 6e2c        pt-Language:.en,
0x0230   2064 650d 0a48 6f73 743a 2077 7777 2e66        .de..Host:.www.f
0x0240   7269 656e 6473 636f 7574 3234 2e64 650d        riendscout24.de.
0x0250   0a43 6f6f 6b69 653a 2066 696c 6961 6c65        .Cookie:.filiale
0x0260   3d30 3b20 3231 3730 3739 3766 696c 7465        =0;.2170797filte
0x0270   7273 6574 7469 6e67 733d 6669 6c53 6f72        rsettings=filSor
0x0280   7466 656d 616c 653d 312c 6669 6c53 6f72        tfemale=1,filSor
0x0290   746d 616c 653d 302c 6669 6c53 6f72 7463        tmale=0,filSortc
0x02a0   6f75 6e74 7279 3d30 2c66 696c 536f 7274        ountry=0,filSort
0x02b0   706c 7a3d 302c 6669 6c53 6f72 7461 6765        plz=0,filSortage
0x02c0   3d30 2c66 696c 536f 7274 706d 3d30 2c66        =0,filSortpm=0,f
0x02d0   696c 536f 7274 7069 6374 7572 653d 312c        ilSortpicture=1,
0x02e0   6669 6c53 6f72 7463 743d 302c 6669 6c53        filSortct=0,filS
0x02f0   6f72 7463 6f75 6e74 7279 7661 6c75 653d        ortcountryvalue=
0x0300   3137 3131 302c 6669 6c53 6f72 7470 6c7a        17110,filSortplz
0x0310   7661 6c75 653d 382c 6669 6c53 6f72 7461        value=8,filSorta
0x0320   6765 6672 6f6d 3d31 382c 6669 6c53 6f72        gefrom=18,filSor
0x0330   7461 6765 746f 3d39 392c 3b20 3230 3273        tageto=99,;.202s
0x0340   6561 7263 6873 6574 7469 6e67 733d 6765        earchsettings=ge
0x0350   7363 686c 6563 6874 3d31 2c61 6c74 6572        schlecht=1,alter
0x0360   5f6d 696e 3d30 2c61 6c74 6572 5f6d 6178        _min=0,alter_max
0x0370   3d36 392c 776f 686e 6c61 6e64 3d31 312c        =69,wohnland=11,
0x0380   706c 7a3d 3830 3939 332c 666f 746f 7374        plz=80993,fotost
0x0390   6174 7573 3d30 2c0d 0a0d 0a                    atus=0,....


Second request which is made (within the same click)
14:52:30.362196 IP jmbdev.internal.friendscout24.de.41758 > www.friendscout24.de.www: P 0:869(869) ack 1 win 5840
0x0000   0001 0205 077e 0001 021e 7a2c 0800 4500        .....~....z,..E.
0x0010   038d a048 4000 4006 031d 0a00 a3eb d412        ...H@.@.........
0x0020   1208 a31e 0050 586e 3b39 486d 93ab 5018        .....PXn;9Hm..P.
0x0030   16d0 a0fc 0000 4745 5420 2f63 6769 2d62        ......GET./cgi-b
0x0040   696e 2f69 7677 2f43 502f 302f 3430 2f31        in/ivw/CP/0/40/1
0x0050   3032 2f32 3631 3236 3633 2f30 2f31 3330        02/2612663/0/130
0x0060   3030 2f30 2048 5454 502f 312e 310d 0a43        00/0.HTTP/1.1..C
0x0070   6f6e 6e65 6374 696f 6e3a 204b 6565 702d        onnection:.Keep-
0x0080   416c 6976 650d 0a55 7365 722d 4167 656e        Alive..User-Agen
0x0090   743a 204d 6f7a 696c 6c61 2f35 2e30 2028        t:.Mozilla/5.0.(
0x00a0   636f 6d70 6174 6962 6c65 3b20 4b6f 6e71        compatible;.Konq
0x00b0   7565 726f 722f 332e 323b 204c 696e 7578        ueror/3.2;.Linux
0x00c0   2920 284b 4854 4d4c 2c20 6c69 6b65 2047        ).(KHTML,.like.G
0x00d0   6563 6b6f 290d 0a41 6363 6570 743a 2069        ecko)..Accept:.i
0x00e0   6d61 6765 2f78 2d70 6f72 7461 626c 652d        mage/x-portable-
0x00f0   6269 746d 6170 2c20 696d 6167 652f 782d        bitmap,.image/x-
0x0100   7063 782c 2069 6d61 6765 2f78 2d78 626d        pcx,.image/x-xbm
0x0110   2c20 696d 6167 652f 782d 7461 7267 612c        ,.image/x-targa,
0x0120   2069 6d61 6765 2f78 2d69 636f 2c20 696d        .image/x-ico,.im
0x0130   6167 652f 706e 672c 2069 6d61 6765 2f78        age/png,.image/x
0x0140   2d70 6f72 7461 626c 652d 7069 786d 6170        -portable-pixmap
0x0150   2c20 696d 6167 652f 6a70 6567 2c20 696d        ,.image/jpeg,.im
0x0160   6167 652f 782d 7870 6d2c 2069 6d61 6765        age/x-xpm,.image
0x0170   2f78 2d65 7073 2c20 696d 6167 652f 7469        /x-eps,.image/ti
0x0180   6666 2c20 696d 6167 652f 782d 626d 702c        ff,.image/x-bmp,
0x0190   2069 6d61 6765 2f67 6966 3b71 3d30 2e35        .image/gif;q=0.5
0x01a0   2c2a 2f2a 3b71 3d30 2e31 0d0a 4163 6365        ,*/*;q=0.1..Acce
0x01b0   7074 2d45 6e63 6f64 696e 673a 2078 2d67        pt-Encoding:.x-g
0x01c0   7a69 702c 2078 2d64 6566 6c61 7465 2c20        zip,.x-deflate,.
0x01d0   677a 6970 2c20 6465 666c 6174 652c 2069        gzip,.deflate,.i
0x01e0   6465 6e74 6974 790d 0a41 6363 6570 742d        dentity..Accept-
0x01f0   4368 6172 7365 743a 2069 736f 2d38 3835        Charset:.iso-885
0x0200   392d 3135 2c20 7574 662d 383b 713d 302e        9-15,.utf-8;q=0.
0x0210   352c 202a 3b71 3d30 2e35 0d0a 4163 6365        5,.*;q=0.5..Acce
0x0220   7074 2d4c 616e 6775 6167 653a 2065 6e2c        pt-Language:.en,
0x0230   2064 650d 0a48 6f73 743a 2077 7777 2e66        .de..Host:.www.f
0x0240   7269 656e 6473 636f 7574 3234 2e64 650d        riendscout24.de.
0x0250   0a43 6f6f 6b69 653a 2066 696c 6961 6c65        .Cookie:.filiale
0x0260   3d30 3b20 3231 3730 3739 3766 696c 7465        =0;.2170797filte
0x0270   7273 6574 7469 6e67 733d 6669 6c53 6f72        rsettings=filSor
0x0280   7466 656d 616c 653d 312c 6669 6c53 6f72        tfemale=1,filSor
0x0290   746d 616c 653d 302c 6669 6c53 6f72 7463        tmale=0,filSortc
0x02a0   6f75 6e74 7279 3d30 2c66 696c 536f 7274        ountry=0,filSort
0x02b0   706c 7a3d 302c 6669 6c53 6f72 7461 6765        plz=0,filSortage
0x02c0   3d30 2c66 696c 536f 7274 706d 3d30 2c66        =0,filSortpm=0,f
0x02d0   696c 536f 7274 7069 6374 7572 653d 312c        ilSortpicture=1,
0x02e0   6669 6c53 6f72 7463 743d 302c 6669 6c53        filSortct=0,filS
0x02f0   6f72 7463 6f75 6e74 7279 7661 6c75 653d        ortcountryvalue=
0x0300   3137 3131 302c 6669 6c53 6f72 7470 6c7a        17110,filSortplz
0x0310   7661 6c75 653d 382c 6669 6c53 6f72 7461        value=8,filSorta
0x0320   6765 6672 6f6d 3d31 382c 6669 6c53 6f72        gefrom=18,filSor
0x0330   7461 6765 746f 3d39 392c 3b20 3230 3273        tageto=99,;.202s
0x0340   6561 7263 6873 6574 7469 6e67 733d 6765        earchsettings=ge
0x0350   7363 686c 6563 6874 3d31 2c61 6c74 6572        schlecht=1,alter
0x0360   5f6d 696e 3d30 2c61 6c74 6572 5f6d 6178        _min=0,alter_max
0x0370   3d36 392c 776f 686e 6c61 6e64 3d31 312c        =69,wohnland=11,
0x0380   706c 7a3d 3830 3939 332c 666f 746f 7374        plz=80993,fotost
0x0390   6174 7573 3d30 2c0d 0a0d 0a                    atus=0,....


I think this is a bug cause any web page that does some action like issuing a payment or responding with a triggered mail will break (issue payments more than once or send emails mor than once ...)

Having to create an account just to submit a bug really sucks. And who is gone remember the 
autogenerated password anyway? If it's that much work to submit a simple bug then I might as well fix it myself and skip this stupid report.
Anyways sorry for the rant it's probably not your fault, if you have any questions please contact me under joachim@bauernberger.de 

Regards,
~/joachim
Comment 1 Joachim Bauernberger 2004-02-11 15:06:27 UTC
just noticed your comment under the submit on the previous page "pleas click only once" i can imagine that you _do_ get lots of double reports. If one uses the current version of khtml (konqueror) to view the page, then sure it is no wonder that you get your bug reports more than once (it's not always the dumb users who dunno how to click you know)
Comment 2 Dirk Mueller 2004-02-11 15:23:03 UTC
if it is really easier for you to create a patch than 
a bugzilla account then I'll be glad to delete your bugzilla account :)

sorry, but we need at least an email address for further
questions. 

and you don't have to remember the password, since you can
a) change it b) get it via email c) use kwallet
Comment 3 Daniel Naber 2004-02-20 23:49:41 UTC
I tried it, but the request arrives only once at the server. Probably the page that contained the link has some javascript so the "click" happened twice.
Comment 4 Joachim Bauernberger 2004-02-22 12:12:39 UTC
Actually the link was executed from within kmail. 
The mail that contained the link did not have any javascript in it.
Also I tried opening the link from within other mailclients (mozilla, Outlook), which only send the request once.
I can imagine that this only happens when the remote site does not respond within a certain time.
Comment 5 Daniel Naber 2004-03-20 23:17:20 UTC
I can now reproduce this. It happens only in KMail and if the URL points
to the server but doesn't end in a slash. It's easy to test with 
http://localhost (no HTML mail is required).
Comment 6 Ingo Klöcker 2004-03-23 23:36:35 UTC
Didn't I reassign exactly the same bug (not the same bug report though) just a few days/weeks ago? Anyway, KMail simply calls KRun(url). So if there's a bug then it's in KRun (or even more deeply in kdelibs), but not in KMail.

Since I can't confirm it and Daniel's confirmation is wrong (because it's not about reloading the web page with slash which happens all the time and in every application and is caused by the webserver itself AFAIK) I re-unconfirm the bug.
Comment 7 Joachim Bauernberger 2004-03-24 09:35:26 UTC
I can still reproduce it on my box, however it only applies if the remote end does not answer immediately.
So it's a bug as far as I'm concerned.
Comment 8 Lubos Lunak 2004-12-06 13:29:24 UTC

*** This bug has been marked as a duplicate of 76771 ***