最新 1.6 Apache Shiro 发布问题
Latest 1.6 Apache Shiro release problems
我刚刚将我的网站更新到 shiro 的 1.6 版本。现在,当您第一次尝试使用凭据登录时,我不断收到很多错误。它实现了用于翻译的 taglib prefix="fmt" 标签库,看来这可能会导致问题。有人有过同样的经历吗?
错误跟踪
HTTP Status 400 – Bad Request
Type Status Report
Message Invalid request
Description The server cannot or will not process the request due to
something that is perceived to be a client error (e.g., malformed request
syntax, invalid request message framing, or deceptive request routing).
Apache Tomcat (TomEE)/9.0.37 (8.0.4)
详细信息:当我第一次启动 tomcat 并尝试登录时,站点语言设置为区域设置,它给我错误。当我切换到英语时,错误消失了
建议您禁用Url重写:
如果您使用的是 shiro.ini 它看起来像这样
shiro.sessionManager.sessionIdUrlRewritingEnabled = false
要恢复以前的 1.6.0 行为,请参阅文档的这一部分。
https://shiro.apache.org/web.html#global-filters
Shiro 的下一个版本将修复此冲突,在此之前,您将需要禁用一个或另一个。
我刚刚将我的网站更新到 shiro 的 1.6 版本。现在,当您第一次尝试使用凭据登录时,我不断收到很多错误。它实现了用于翻译的 taglib prefix="fmt" 标签库,看来这可能会导致问题。有人有过同样的经历吗?
错误跟踪
HTTP Status 400 – Bad Request
Type Status Report
Message Invalid request
Description The server cannot or will not process the request due to
something that is perceived to be a client error (e.g., malformed request
syntax, invalid request message framing, or deceptive request routing).
Apache Tomcat (TomEE)/9.0.37 (8.0.4)
详细信息:当我第一次启动 tomcat 并尝试登录时,站点语言设置为区域设置,它给我错误。当我切换到英语时,错误消失了
建议您禁用Url重写:
如果您使用的是 shiro.ini 它看起来像这样
shiro.sessionManager.sessionIdUrlRewritingEnabled = false
要恢复以前的 1.6.0 行为,请参阅文档的这一部分。 https://shiro.apache.org/web.html#global-filters
Shiro 的下一个版本将修复此冲突,在此之前,您将需要禁用一个或另一个。