Bug 211598 - clicking on link in plain text e-mail results causes page to be loaded twice
Summary: clicking on link in plain text e-mail results causes page to be loaded twice
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-23 23:33 UTC by Michael Kreitzer
Modified: 2018-09-04 18:21 UTC (History)
1 user (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 Michael Kreitzer 2009-10-23 23:33:17 UTC
Version:            (using KDE 4.3.2)
OS:                Linux
Installed from:    Archlinux Packages

To be more precise, once the tab opens in konqueror the URL is requested from the web server twice. I noticed this when I couldn't make a password reset link work on a web application I'm developing. I noticed the reset URL is being loaded twice, and the second time it loads it no longer works to gain access to the account by design. Here are the logs from the web application so you can see the behavior:

Processing UsersController#activate (for <removed> at 2009-10-23 17:16:31) [GET]
  Parameters: {"id"=>"2", "code"=>"9442220b810ca7d32309ae5c00c9e9b79363f698"}       
  User Load (0.2ms)   SELECT * FROM `users` WHERE (`users`.`id` = 2)                
  CACHE (0.0ms)   SELECT * FROM `users` WHERE (`users`.`id` = 2)                    
  SQL (0.1ms)   BEGIN                                                               
  User Load (0.3ms)   SELECT `users`.id FROM `users` WHERE (`users`.`username` = BINARY 'example' AND `users`.id <> 2) LIMIT 1
  User Update (0.3ms)   UPDATE `users` SET `activation_key` = NULL, `updated_at` = '2009-10-23 21:16:31' WHERE `id` = 2          
  SQL (15.8ms)   COMMIT                                                                                                          
Redirected to http://<removed>/users/2/edit                                                                              
Completed in 21ms (DB: 35) | 302 Found [http://<removed>/users/2/activate/9442220b810ca7d32309ae5c00c9e9b79363f698]      


Processing UsersController#edit (for <removed> at 2009-10-23 17:16:32) [GET]
  Parameters: {"id"=>"2"}                                                       
  User Load (0.2ms)   SELECT * FROM `users` WHERE (`users`.`id` = 2)            
  CACHE (0.0ms)   SELECT * FROM `users` WHERE (`users`.`id` = 2)                
Rendering template within layouts/application                                   
Rendering users/edit                                                            
Rendered admin/_index (0.6ms)                                                   
Rendered layouts/_admin (1.2ms)                                                 
  Page Load (0.4ms)   SELECT * FROM `pages` WHERE (`pages`.`group` = 'users' AND `pages`.`name` = 'edit_2') LIMIT 1
  Revision Load (0.2ms)   SELECT * FROM `revisions` WHERE (`revisions`.`id` = 346)                                 
  Fragment Load (0.6ms)   SELECT * FROM `fragments` WHERE (`fragments`.revision_id = 346)                          
Completed in 12ms (View: 9, DB: 5) | 200 OK [http://<removed>/users/2/edit]                                


Processing UsersController#activate (for <removed> at 2009-10-23 17:16:33) [GET]
  Parameters: {"id"=>"2", "code"=>"9442220b810ca7d32309ae5c00c9e9b79363f698"}       
  User Load (0.2ms)   SELECT * FROM `users` WHERE (`users`.`id` = 2)                
  CACHE (0.0ms)   SELECT * FROM `users` WHERE (`users`.`id` = 2)                    

After here is fails as the activation key was removed the first go around.

The process is: activation url logs user in and redirects to user account edit url, but before you even get a chance to see the edit url the activation url is loaded again in the same tab, and the user is logged out.

I'm opening this in kmail as this does not happen of I copy the link address from the e-mail and paste it into konqueror. It only happens if I click on the URL directly in kmail.
Comment 1 Martin Koller 2009-10-26 19:32:08 UTC
Can you try to create a mini-html page which contains exactly the same link you find in the email and open this page with konqueror.
Then click on the link and see if this happens also.

If it's a problem in kmail, then every URL request should be issued twice, which does not happen.
Comment 2 Michael Kreitzer 2009-10-26 19:53:32 UTC
It may also be related to a link that immediately issues a http redirect. When 
I get a chance I'll test this and let you know.
Comment 3 Andrew Crouthamel 2018-09-04 18:21:25 UTC
Hello! Sorry to be the bearer of bad news, but this version of Kmail has been unmaintained for many years so I am closing this bug. Please try using the latest version of Kmail to see if your issue persists. If it does, please submit a new bug in "kmail2". Thank you!