Bug 1125929

Summary: Session expired redirects don't always redirect in browser
Product: Red Hat Satellite Reporter: Shannon Hughes <shughes>
Component: WebUIAssignee: Walden Raines <walden>
WebUI sub component: Katello QA Contact: Katello QA List <katello-qa-list>
Status: CLOSED WONTFIX Docs Contact:
Severity: medium    
Priority: unspecified CC: bbuckingham, djuran, mmccune, shughes
Version: 6.0.3Keywords: Triaged
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/17773
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-01 20:33:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1115190, 1139277    

Description Shannon Hughes 2014-08-01 11:14:42 UTC
Description of problem:

Noticed this in a few areas of the site but seems to occur when you have a ajax type action. For example, browse to the Sync Management page. Let the session expire for the user then click the sync now button. The app knows that user session has expired and appears to try and redirect but visually nothing happens in webui. snippet of logs: 


Processing by Katello::SyncManagementController#sync as JS
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"N0NfYftorark47ETfzu1Ve+B6+uoGZbIQvs/crd47yM=", "sync_status_url"=>"", "repoids"=>["2"], "commit"=>"Synchronize Now"}
Session for Admin User is expired.
Redirected to https://sat6.katello.lan/users/login
Filter chain halted as :session_expiry rendered or redirected
Completed 302 Found in 22ms (ActiveRecord: 13.7ms)
Processing by Katello::SyncManagementController#sync as JS
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"N0NfYftorark47ETfzu1Ve+B6+uoGZbIQvs/crd47yM=", "sync_status_url"=>"", "repoids"=>["2"]}
WARNING: Can't verify CSRF token authenticity
Redirected to https://sat6.katello.lan/users/login
Filter chain halted as :require_login rendered or redirected
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
Processing by UsersController#login as JS
Current user is set, but not expected. Clearing
  Rendered users/login.html.erb within layouts/login (2.8ms)
  Rendered layouts/base.html.erb (1.0ms)
Completed 200 OK in 11ms (Views: 6.9ms | ActiveRecord: 0.4ms)
Processing by UsersController#login as JS
  Rendered users/login.html.erb within layouts/login (1.7ms)
  Rendered layouts/base.html.erb (0.9ms)
Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)
Connecting to database specified by database.yml

Comment 1 RHEL Program Management 2014-08-01 11:43:48 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 5 Walden Raines 2016-12-15 15:14:48 UTC
Are you able to reproduce this on any pages other than the sync management page?

Comment 6 Walden Raines 2016-12-19 20:11:59 UTC
Created redmine issue http://projects.theforeman.org/issues/17773 from this bug

Comment 7 Shannon Hughes 2017-01-05 19:02:24 UTC
testing my memory now but if I recall correctly there were a few pages that had this behavior but they were all pages that had active ajax calls running

Comment 8 Bryan Kearney 2017-08-01 20:33:46 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.