redirect loops after logout

Added by Alex Polyakov 4 months ago

Hello, and sorry for my English.
I have a problem with redmine.

After clicking on the logout button, the looping occurs and eventually the browser issues a server error.
After that, you can go to redmine only after removing the cookies.
This problem has been reproduced on several computers only once. After this browser work normally.
I think this is something like https.
Redmine started in docker container from image redmine:3.3.2-passenger

In environment.rb add this lines:

RedmineApp::Application.routes.default_scope = "/redmine" 
Rails.application.initialize!
Redmine::Utils::relative_url_root = "/redmine" 

In the redmine log i see:

Redirected to https://192.168.1.7:3000/redmine/login?back_url=http%3A%2F%2F192.168.1.7%3A3000%2Fredmine%2Flogin%3Fback_url%3Dhttp%253A%252F%252F192.168.1.7%253A3000%252Fredmine%252Flogin%253Fback_url%253Dhttp%25253A%25252F%25252F192.168.1.7%25253A3000%25252Fredmine%25252Flogin%25253Fback_url%25253Dhttp%2525253A%2525252F%2525252F192.168.1.7%2525253A3000%2525252Fredmine%2525252Flogin%2525253Fback_url%2525253Dhttp%252525253A%252525252F%252525252F192.168.1.7%252525253A3000%252525252Fredmine%252525252Flogin%252525253Fback_url%252525253Dhttp%25252525253A%25252525252F%25252525252F192.168.1.7%25252525253A3000%25252525252Fredmine%25252525252Flogin%25252525253Fback_url%25252525253Dhttp%2525252525253A%2525252525252F%2525252525252F192.168.1.7%2525252525253A3000%2525252525252Fredmine%2525252525252Flogin%2525252525253Fback_url%2525252525253Dhttp%252525252525253A%252525252525252F%252525252525252F192.168.1.7%252525252525253A3000%252525252525252Fredmine%252525252525252Flogin%252525252525253Fback_url%252525252525253Dhttp%25252525252525253A%25252525252525252F%25252525252525252F192.168.1.7%25252525252525253A3000%25252525252525252Fredmine%25252525252525252Flogin%25252525252525253Fback_url%25252525252525253Dhttp%2525252525252525253A%2525252525252525252F%2525252525252525252F192.168.1.7%2525252525252525253A3000%2525252525252525252Fredmine%2525252525252525252Flogin%2525252525252525253Fback_url%2525252525252525253Dhttp%252525252525252525253A%252525252525252525252F%252525252525252525252F192.168.1.7%252525252525252525253A3000%252525252525252525252Fredmine%252525252525252525252Flogin%252525252525252525253Fback_url%252525252525252525253Dhttp%25252525252525252525253A%25252525252525252525252F%25252525252525252525252F192.168.1.7%25252525252525252525253A3000%25252525252525252525252Fredmine%25252525252525252525252Flogin%25252525252525252525253Fback_url%25252525252525252525253Dhttp%2525252525252525252525253A%2525252525252525252525252F%2525252525252525252525252F192.168.1.7%2525252525252525252525253A3000%2525252525252525252525252Fredmine%2525252525252525252525252Flogin%2525252525252525252525253Fback_url%2525252525252525252525253Dhttp%252525252525252525252525253A%252525252525252525252525252F%252525252525252525252525252F192.168.1.7%252525252525252525252525253A3000%252525252525252525252525252Fredmine%252525252525252525252525252Flogin%252525252525252525252525253Fback_url%252525252525252525252525253Dhttp%25252525252525252525252525253A%25252525252525252525252525252F%25252525252525252525252525252F192.168.1.7%25252525252525252525252525253A3000%25252525252525252525252525252Fredmine%25252525252525252525252525252Flogin%25252525252525252525252525253Fback_url%25252525252525252525252525253Dhttp%2525252525252525252525252525253A%2525252525252525252525252525252F%2525252525252525252525252525252F192.168.1.7%2525252525252525252525252525253A3000%2525252525252525252525252525252Fredmine%2525252525252525252525252525252Flogin%2525252525252525252525252525253Fback_url%2525252525252525252525252525253Dhttp%252525252525252525252525252525253A%252525252525252525252525252525252F%252525252525252525252525252525252F192.168.1.7%252525252525252525252525252525253A3000%252525252525252525252525252525252Fredmine%252525252525252525252525252525252Flogin%252525252525252525252525252525253Fback_url%252525252525252525252525252525253Dhttp%25252525252525252525252525252525253A%25252525252525252525252525252525252F%25252525252525252525252525252525252F192.168.1.7%25252525252525252525252525252525253A3000%25252525252525252525252525252525252Fredmine%25252525252525252525252525252525252Flogin%25252525252525252525252525252525253Fback_url%25252525252525252525252525252525253Dhttp%2525252525252525252525252525252525253A%2525252525252525252525252525252525252F%2525252525252525252525252525252525252F192.168.1.7%2525252525252525252525252525252525253A3000%2525252525252525252525252525252525252Fredmine%2525252525252525252525252525252525252Flogin%2525252525252525252525252525252525253Fback_url%2525252525252525252525252525252525253Dhttp%252525252525252525252525252525252525253A%252525252525252525252525252525252525252F%252525252525252525252525252525252525252F192.168.1.7%252525252525252525252525252525252525253A3000%252525252525252525252525252525252525252Fredmine%252525252525252525252525252525252525252Flogin%252525252525252525252525252525252525253Fback_url%252525252525252525252525252525252525253Dhttp%25252525252525252525252525252525252525253A%25252525252525252525252525252525252525252F%25252525252525252525252525252525252525252F192.168.1.7%25252525252525252525252525252525252525253A3000%25252525252525252525252525252525252525252Fredmine%25252525252525252525252525252525252525252Flogin%25252525252525252525252525252525252525253Fback_url%25252525252525252525252525252525252525253Dhttp%2525252525252525252525252525252525252525253A%2525252525252525252525252525252525252525252F%2525252525252525252525252525252525252525252F192.168.1.7%2525252525252525252525252525252525252525253A3000%2525252525252525252525252525252525252525252Fredmine%2525252525252525252525252525252525252525252Flogin%2525252525252525252525252525252525252525253Fback_url%2525252525252525252525252525252525252525253Dhttp%252525252525252525252525252525252525252525253A%252525252525252525252525252525252525252525252F%252525252525252525252525252525252525252525252F192.168.1.7%252525252525252525252525252525252525252525253A3000%252525252525252525252525252525252525252525252Fredmine%252525252525252525252525252525252525252525252Flogin%252525252525252525252525252525252525252525253Fback_url%252525252525252525252525252525252525252525253Dhttp%25252525252525252525252525252525252525252525253A%25252525252525252525252525252525252525252525252F%25252525252525252525252525252525252525252525252F192.168.1.7%25252525252525252525252525252525252525252525253A3000%25252525252525252525252525252525252525252525252Fredmine%25252525252525252525252525252525252525252525252Flogin%25252525252525252525252525252525252525252525253Fback_url%25252525252525252525252525252525252525252525253Dhttp%2525252525252525252525252525252525252525252525253A%2525252525252525252525252525252525252525252525252F%2525252525252525252525252525252525252525252525252F192.168.1.7%2525252525252525252525252525252525252525252525253A3000%2525252525252525252525252525252525252525252525252Fredmine%2525252525252525252525252525252525252525252525252Flogin%2525252525252525252525252525252525252525252525253Fback_url%2525252525252525252525252525252525252525252525253Dhttp%252525252525252525252525252525252525252525252525253A%252525252525252525252525252525252525252525252525252F%252525252525252525252525252525252525252525252525252F192.168.1.7%252525252525252525252525252525252525252525252525253A3000%252525252525252525252525252525252525252525252525252Fredmine%252525252525252525252525252525252525252525252525252Flogin%252525252525252525252525252525252525252525252525253Fback_url%252525252525252525252525252525252525252525252525253Dhttp%25252525252525252525252525252525252525252525252525253A%25252525252525252525252525252525252525252525252525252F%25252525252525252525252525252525252525252525252525252F192.168.1.7%25252525252525252525252525252525252525252525252525253A3000%25252525252525252525252525252525252525252525252525252Fredmine%25252525252525252525252525252525252525252525252525252Flogin%25252525252525252525252525252525252525252525252525253Fback_url%25252525252525252525252525252525252525252525252525253Dhttp%2525252525252525252525252525252525252525252525252525253A%2525252525252525252525252525252525252525252525252525252F%2525252525252525252525252525252525252525252525252525252F192.168.1.7%2525252525252525252525252525252525252525252525252525253A3000%2525252525252525252525252525252525252525252525252525252Fredmine%2525252525252525252525252525252525252525252525252525252Flogin%2525252525252525252525252525252525252525252525252525253Fback_url%2525252525252525252525252525252525252525252525252525253Dhttp%252525252525252525252525252525252525252525252525252525253A%252525252525252525252525252525252525252525252525252525252F%252525252525252525252525252525252525252525252525252525252F192.168.1.7%252525252525252525252525252525252525252525252525252525253A3000%252525252525252525252525252525252525252525252525252525252Fredmine

Filter chain halted as :session_expiration rendered or redirected

What could be the problem?