How to solve error “422:invalid authentication token” in Redmine

谁说胖子不能爱 提交于 2019-12-11 10:45:50

问题


In redmine I am getting 422:invalid authentication token and the logged in name is displayed with other user name instead of login user. There are no steps to reproduce. All of a sudden it occurs and it will be proper when I refresh the link. Please find the attached image for clear scenario. In the attached screenshot login user name is Pavithra but all of a sudden the logged in name will be displayed with other user name (Highlighted in green colour).


回答1:


I ran into a similar issue for several users. For most of them it was handled via a simple disconnect / connect operation.

But one of them gave me a hard time. It happened all the time with an easy step to reproduce : adding a new block to "my page" constantly resulted in the 422 invalid token error message. No internet solution would give me a clue :

  • cookie deleting
  • secret key reseting
  • forcing a redirect to the home page

Moreover it happened for any web browser, even a newly installed one. That led me to the user_preferences table in the database. I asked the user if I could reset his preferences and I did it with the following SQL command : delete from user_preferences where user_id=xx; where xx is the user ID.

After a disconnect / connect, a new block can be added to "my page", the 422 error is gone.



来源:https://stackoverflow.com/questions/35602441/how-to-solve-error-422invalid-authentication-token-in-redmine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!