-
Notifications
You must be signed in to change notification settings - Fork 472
Description
Issue Description
When I update my OBS instance from:
git commit 1b0d5ab
to:
git commit 5c57d1b
I cannot login with my users anymore from the WebUI
I can still use the api and command line tool osc
Expected Result
I should be able to login
How to Reproduce
- click on login in the WebUI
- select a user from the Webbrowers, stored
- click on "Login In"
- https://<myobshost>/session returns: 403
Further Information
From the production.log logfile:
W, [2026-03-05T14:28:33.476169 #18796] WARN -- : [08f57bf2-d91f-4a26-a53a-b2957e489e60] Can't verify CSRF token authenticity.
I, [2026-03-05T14:28:33.479529 #18796] INFO -- : [08f57bf2-d91f-4a26-a53a-b2957e489e60] method=POST path=/session format=html controller=Webui::SessionController action=create status=403 allocations=1272 duration=11.70 view=0.00 db=1.10 params={"authenticity_token" => "[FILTERED]", "username" => "MartinMohring", "password" => "[FILTERED]", "commit" => "Log In"} host=192.168.0.32 backend=0 user=nobody bot=false
F, [2026-03-05T14:28:33.485682 #18796] FATAL -- : [08f57bf2-d91f-4a26-a53a-b2957e489e60]
[08f57bf2-d91f-4a26-a53a-b2957e489e60] ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
[08f57bf2-d91f-4a26-a53a-b2957e489e60]
[08f57bf2-d91f-4a26-a53a-b2957e489e60] app/controllers/webui/webui_controller.rb:45:in 'Webui::WebuiController#handle_unverified_request'
[08f57bf2-d91f-4a26-a53a-b2957e489e60] config/initializers/prefer_xml_over_html.rb:15:in 'PreferXmlOverHtml#call'