Defect #5387
closedInvalid autenticity token
Description
Some operations, even if executed as 'admin', fail with the error message Invalid autenticity token,
I've tried both with debian's epiphany version 2.30.2-1 and iceweasel 3.5.9-2. Redmine debian's 0.9.3-3 package with sqlite (with and without cleaning cookies stored by the redmine server in our network).
The error is strange, as some operations do indeed work, and the log shows the same token for all failing and non-failing operations.
Destroy repository (succeeds):
Processing RepositoriesController#destroy (for <IP> at 2010-04-27 11:40:47) [POST]
Parameters: {"action"=>"destroy", "authenticity_token"=>"0c1460674eb112a01315c219bf8b8b44aa473668", "id"=>"sciexp2", "controller"=>"repositories"}
Redirected to tabrepositoryactionsettingscontrollerprojectsidSciExp²
Completed in 40ms (DB: 20) | 302 Found [https://<server>/projects/sciexp2/repository/destroy]
Go back to settings and add the 'issues' module to the project (fails):
Processing ProjectsController#settings (for <IP> at 2010-04-27 11:40:47) [GET]
Parameters: {"action"=>"settings", "id"=>"sciexp2", "controller"=>"projects", "tab"=>"repository"}
Rendering template within layouts/base
Rendering projects/settings
Completed in 122ms (View: 113, DB: 2) | 200 OK [https://<server>/projects/sciexp2/settings/repository]
Processing ProjectsController#modules (for <IP> at 2010-04-27 11:41:42) [POST]
Parameters: {"enabled_modules"=>["issue_tracking", "wiki", "repository"], "commit"=>"Save", "action"=>"modules", "authenticity_token"=>"0c1460674eb112a01315c219bf8b8b44aa473668", "id"=>"sciexp2", "controller"=>"projects"}
Rendering template within layouts/base
Go back, and re-add the subversion URI for the repository (succeeds):
Processing ProjectsController#settings (for <IP> at 2010-04-27 11:41:58) [GET]
Parameters: {"action"=>"settings", "id"=>"sciexp2", "controller"=>"projects", "tab"=>"repository"}
Rendering template within layouts/base
Rendering projects/settings
Completed in 119ms (View: 110, DB: 3) | 200 OK [https://<server>/projects/sciexp2/settings/repository]
Processing RepositoriesController#edit (for <IP> at 2010-04-27 11:42:05) [GET]
Parameters: {"action"=>"edit", "authenticity_token"=>"0c1460674eb112a01315c219bf8b8b44aa473668", "id"=>"sciexp2", "controller"=>"repositories", "repository_scm"=>"Subversion"}
Completed in 14ms (View: 7, DB: 2) | 200 OK [https://<server>/projects/sciexp2/repository/edit?authenticity_token=0c1460674eb112a01315c219bf8b8b44aa473668&authenticity_token=0c1460674eb112a01315c219bf8b8b44aa473668&repository_scm=Subversion]
Processing RepositoriesController#edit (for <IP> at 2010-04-27 11:42:23) [POST]
Parameters: {"repository"=>{"url"=>"file:///home/code/svn/sciexp2", "login"=>""}, "commit"=>"Create", "action"=>"edit", "authenticity_token"=>"0c1460674eb112a01315c219bf8b8b44aa473668", "id"=>"sciexp2", "controller"=>"repositories", "ignore"=>"", "repository_scm"=>"Subversion"}
Completed in 23ms (View: 10, DB: 2) | 200 OK [https://<server>/projects/sciexp2/repository/edit]
Thanks a lot for your wonderful work.
Updated by Lluís Vilanova over 16 years ago
I cannot edit the initial bug report, but I've misstyped the error message. It is Invalid form authenticity token..
Updated by Fritz brause over 16 years ago
maybe same problem as in #5051
Updated by Lluís Vilanova over 16 years ago
Updated by Felix Schäfer over 16 years ago
- Status changed from Resolved to Closed
- Resolution set to Duplicate
Closing this in favor of #3968.