如何解决错误“422:invalid authentication token"在 Redmine [英] How to solve error "422:invalid authentication token" in Redmine

查看:220
本文介绍了如何解决错误“422:invalid authentication token"在 Redmine的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 redmine 中,我收到 422:invalid authentication token 并且登录名显示为其他用户名而不是登录用户.没有重现的步骤.突然间它发生了,当我刷新链接时它会正确.请找到附件图片以获得清晰的场景.在附加的屏幕截图中,登录用户名是 Pavithra,但突然登录名将显示为其他用户名(以绿色突出显示).

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).

推荐答案

我遇到了几个用户的类似问题.对于他们中的大多数人来说,它是通过简单的断开/连接操作来处理的.

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

但其中一个让我很难受.它一直发生在一个简单的步骤中:向我的页面"添加一个新块不断导致 422 invalid token 错误消息.没有互联网解决方案会给我一个线索:

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 删除
  • 秘钥重置
  • 强制重定向到主页

此外,任何网络浏览器都会发生这种情况,即使是新安装的浏览器.这让我找到了数据库中的 user_preferences 表.我问用户是否可以重置他的首选项,我使用以下 SQL 命令进行了操作:delete from user_preferences where user_id=xx; 其中 xx 是用户 ID.

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.

断开/连接后,可以将新块添加到我的页面",422错误消失了.

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

这篇关于如何解决错误“422:invalid authentication token"在 Redmine的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆