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.