Project

General

Profile

Bug #17773

Session expired redirects don't always redirect in browser

Added by Walden Raines over 2 years ago. Updated about 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Web UI
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

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 over 2 years ago

  • Legacy Backlogs Release (now unused) set to 114

#2 Updated by Walden Raines over 2 years ago

  • Target version set to 155

#3 Updated by Walden Raines almost 2 years ago

  • Target version changed from 155 to 219

#4 Updated by Walden Raines almost 2 years ago

  • Assignee deleted (Walden Raines)

#5 Updated by Walden Raines about 1 year ago

  • Target version deleted (219)

Also available in: Atom PDF