-----Original Message-----
From: Mark Thomas <ma...@apache.org>
Sent: Saturday, February 25, 2023 11:56 AM
To: users@tomcat.apache.org
Subject: Re: Tomcat V8.5.85
On 24/02/2023 18:50, Nitish Khune wrote:
HI,
Since I upgraded from 8.5.84 to 8.5.85 or later, Any REST API with below
header throws a context mismatch exception
Sample header :
--header 'Cookie:
JSESSIONID=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1c2VyX3Byb2ZpbGUi
OiJ7XCJfcGVybWFuZW50XCI6dHJ1ZSxcInV1aWRcIjpcIjg5MjM1MmZm’
Exception :
SEVERE: Servlet.service() for servlet [CXFServlet] in context with path
[/Pteway] threw exception
java.lang.IllegalStateException: Unable to find match between the
canonical context path [/Pteway] and the URI presented by the user agent
[SIONID=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1Ni]
at
org.apache.catalina.connector.Request.getContextPath(Request.java:2192)
at
org.apache.catalina.connector.RequestFacade.getContextPath(RequestFaca
de.java:605)
at
javax.servlet.http.HttpServletRequestWrapper.getContextPath(HttpServlet
RequestWrapper.java:137)
at
javax.servlet.http.HttpServletRequestWrapper.getContextPath(HttpServlet
RequestWrapper.java:137)
at
org.springframework.security.web.authentication.logout.LogoutFilter$Filter
ProcessUrlRequestMatcher.matches(LogoutFilter.java:167)
at
org.springframework.security.web.authentication.logout.LogoutFilter.requir
esLogout(LogoutFilter.java:122)
at
org.springframework.security.web.authentication.logout.LogoutFilter.doFilt
er(LogoutFilter.java:94)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilt
er(FilterChainProxy.java:342)
at
org.springframework.security.web.context.request.async.WebAsyncManag
erIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:
50)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerReq
uestFilter.java:107)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilt
er(FilterChainProxy.java:342)
at
org.springframework.security.web.authentication.preauth.AbstractPreAuth
enticatedProcessingFilter.doFilter(AbstractPreAuthenticatedProcessingFilter.
java:94)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilt
er(FilterChainProxy.java:342)
at
org.springframework.security.web.context.SecurityContextPersistenceFilter
.doFilter(SecurityContextPersistenceFilter.java:87)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilt
er(FilterChainProxy.java:342)
at
org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterCh
ainProxy.java:192)
at
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProx
y.java:160)
at
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(Deleg
atingFilterProxy.java:347)
at
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilt
erProxy.java:263)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFi
lterChain.java:181)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChai
n.java:156)
I could not find any information related to above exception. Any
workaround to fix the issue ?
Looks like an instance of:
https://urldefense.com/v3/__https://bz.apache.org/bugzilla/show_bug.cgi?
id=66488__;!!F9svGWnIaVPGSwU!rc-
_ZhQ5dTLOhNb2u6vh_7lKW63Ycnx0H4qZCbKEk3IGcLofoON-
YaHgRRKhPeFjL7ApDp70Ty1hZMGs_ZX6cw$
No work-around. I expect the March releases to have a fix for this.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org