Bug #17773

Session expired redirects don't always redirect in browser

Added by Walden Raines 4 months ago. Updated 4 months ago.

Status:New
Priority:Normal
Assigned To:Walden Raines
Category:Web UI
Target version:Team Tom - backlog
Difficulty: Pull request:
Bugzilla link:1125929
Story points-
Velocity based estimate-
ReleaseBacklogRelease relationshipAuto

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1125929
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

History

#1 Updated by Justin Sherrill 4 months ago

  • Release set to Backlog

#2 Updated by Walden Raines 4 months ago

  • Target version set to Team Tom - backlog

Also available in: Atom PDF