文物部署错误:HTTP状态500-多个过滤器接受此请求



注意:这是一个Q&添加以共享信息

当您尝试推入Artifactory

上的本地PHP存储库时出现此错误
The server encountered an internal error that prevented it from fulfilling this request.
java.lang.RuntimeException: more than one filter accepted this request
    org.artifactory.webapp.servlet.authentication.ArtifactoryAuthenticationFilterChain.acceptFilter(ArtifactoryAuthenticationFilterChain.java:115)
    org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:187)
    org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:165)
    org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:67)
    org.springframework.session.web.http.SessionRepositoryFilter.doFilterInternal(SessionRepositoryFilter.java:164)
    org.springframework.session.web.http.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:80)
    org.artifactory.webapp.servlet.SessionFilter.doFilter(SessionFilter.java:62)
    org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:116)

我刚刚遇到了相同的错误,而其他工作的文物5.2.1在使用Firefox浏览WebApp时,具有相同的堆栈。

还记录了诸如此类的条目。

2021-02-24 23:11:18,340 [http-nio-8080-exec-4] [ERROR] (o.a.w.s.a.ArtifactoryAuthenticationFilterChain:107) - 2nd matching filter ArtifactoryBasicAuthenticationFilter

,但看起来这是客户端/浏览器的内容:在私有模式或另一个浏览器中打开相同的URL时,一切都可以。重新启动浏览器固定故障。

(顺便说一句,使用Firefox 74.0.1出现错误)

在我的情况下,问题是我在请求中使用了生成的令牌和标头指定令牌。

示例:

curl -H "X-JFrog-Art-Api: <token>" http://<user_id>:<token>@docker.for.mac.localhost/artifactory/php-local/

修复程序是删除自定义标头。即仅使用

curl http://<user_id>:<token>@docker.for.mac.localhost/artifactory/php-local/

最新更新