【问题标题】:Latest 1.6 Apache Shiro release problems最新 1.6 Apache Shiro 发布问题
【发布时间】:2020-12-11 00:38:45
【问题描述】:

我刚刚将我的网站更新到了 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 并尝试登录时,站点语言设置为区域设置,它给了我错误。当我切换到英语时,错误消失了

【问题讨论】:

    标签: shiro


    【解决方案1】:

    建议禁用 Url 重写:

    如果你使用的是 shiro.ini,它看起来像这样

    shiro.sessionManager.sessionIdUrlRewritingEnabled = false
    

    要恢复以前的 1.6.0 行为,请参阅文档的这一部分。 https://shiro.apache.org/web.html#global-filters

    Shiro 的下一个版本将解决此冲突,在此之前,您需要禁用其中一个。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-12-18
      • 2015-01-05
      • 2014-09-18
      • 2016-04-02
      • 2014-12-06
      • 2019-10-23
      • 1970-01-01
      • 2017-09-28
      相关资源
      最近更新 更多