[Bug 211598] New: clicking on link in plain text e-mail results causes page to be loaded twice

Michael Kreitzer mrgrim at gr1m.org
Fri Oct 23 22:33:42 BST 2009


https://bugs.kde.org/show_bug.cgi?id=211598

           Summary: clicking on link in plain text e-mail results causes
                    page to be loaded twice
           Product: kmail
           Version: unspecified
          Platform: Archlinux Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdepim-bugs at kde.org
        ReportedBy: mrgrim at gr1m.org


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.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list