You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Nitish Khune <ni...@nutanix.com> on 2023/02/24 18:50:05 UTC

Tomcat V8.5.85

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.eyJ1c2VyX3Byb2ZpbGUiOiJ7XCJfcGVybWFuZW50XCI6dHJ1ZSxcInV1aWRcIjpcIjg5MjM1MmZm’

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(RequestFacade.java:605)

        at javax.servlet.http.HttpServletRequestWrapper.getContextPath(HttpServletRequestWrapper.java:137)

        at javax.servlet.http.HttpServletRequestWrapper.getContextPath(HttpServletRequestWrapper.java:137)

        at org.springframework.security.web.authentication.logout.LogoutFilter$FilterProcessUrlRequestMatcher.matches(LogoutFilter.java:167)

        at org.springframework.security.web.authentication.logout.LogoutFilter.requiresLogout(LogoutFilter.java:122)

        at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:94)

        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)

        at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50)

        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)

        at org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter.doFilter(AbstractPreAuthenticatedProcessingFilter.java:94)

        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)

        at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)

        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)

        at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)

        at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)

        at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:347)

        at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:263)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:181)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:156)

I could not find any information related to above exception. Any workaround to fix the issue ?

Re: Tomcat V8.5.85

Posted by Nitish Khune <ni...@nutanix.com>.
The issue is fixed in latest release. Thanks @Christopher Schultz<ma...@christopherschultz.net>

From: Christopher Schultz <ch...@christopherschultz.net>
Date: Tuesday, February 28, 2023 at 3:01 PM
To: users@tomcat.apache.org <us...@tomcat.apache.org>
Subject: Re: Tomcat V8.5.85
Nitish,

On 2/24/23 13:50, Nitish Khune wrote:
> Since I upgraded from 8.5.84 to 8.5.85 or later, Any REST API with below header throws a context mismatch exception

It would be great if you are able to download the 8.5.87
release-candidate and test whether this problem is resolved for you. If
so, please VOTE on the release! If the problem is _not_ fixed... please
VOTE (-1) on the release!

The release [VOTE] post can be found on the Tomcat development mailing
list, and you can reply back to the list with your vote.

Don't worry about who you are: anybody can vote.

-chris

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org

Re: Tomcat V8.5.85

Posted by Christopher Schultz <ch...@christopherschultz.net>.
Nitish,

On 2/24/23 13:50, Nitish Khune wrote:
> Since I upgraded from 8.5.84 to 8.5.85 or later, Any REST API with below header throws a context mismatch exception

It would be great if you are able to download the 8.5.87 
release-candidate and test whether this problem is resolved for you. If 
so, please VOTE on the release! If the problem is _not_ fixed... please 
VOTE (-1) on the release!

The release [VOTE] post can be found on the Tomcat development mailing 
list, and you can reply back to the list with your vote.

Don't worry about who you are: anybody can vote.

-chris

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Tomcat V8.5.85

Posted by jo...@wellsfargo.com.INVALID.
Thanks again!

Dream * Excel * Explore * Inspire
Jon McAlexander
Senior Infrastructure Engineer
Asst. Vice President
He/His

Middleware Product Engineering
Enterprise CIO | EAS | Middleware | Infrastructure Solutions

8080 Cobblestone Rd | Urbandale, IA 50322
MAC: F4469-010
Tel 515-988-2508 | Cell 515-988-2508

jonmcalexander@wellsfargo.com
This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation.


> -----Original Message-----
> From: Mark Thomas <ma...@apache.org>
> Sent: Monday, February 27, 2023 11:37 AM
> To: users@tomcat.apache.org
> Subject: Re: Tomcat V8.5.85
> 
> On 27/02/2023 17:27, jonmcalexander@wellsfargo.com.INVALID wrote:
> > Will this result in a quick move to 8.5.87 to replace 8.5.86?
> 
> Yes. Tag expected later today. (9.0.x release vote is already in progress).
> 
> Mark
> 
> 
> >
> > Dream * Excel * Explore * Inspire
> > Jon McAlexander
> > Senior Infrastructure Engineer
> > Asst. Vice President
> > He/His
> >
> > Middleware Product Engineering
> > Enterprise CIO | EAS | Middleware | Infrastructure Solutions
> >
> > 8080 Cobblestone Rd | Urbandale, IA 50322
> > MAC: F4469-010
> > Tel 515-988-2508 | Cell 515-988-2508
> >
> > jonmcalexander@wellsfargo.com
> > This message may contain confidential and/or privileged information. If you
> are not the addressee or authorized to receive this for the addressee, you
> must not use, copy, disclose, or take any action based on this message or any
> information herein. If you have received this message in error, please advise
> the sender immediately by reply e-mail and delete this message. Thank you
> for your cooperation.
> >
> >> -----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:219
> >> 2)
> >>>
> >>>           at
> >>
> org.apache.catalina.connector.RequestFacade.getContextPath(RequestFac
> >> a
> >> de.java:605)
> >>>
> >>>           at
> >> javax.servlet.http.HttpServletRequestWrapper.getContextPath(HttpServl
> >> et
> >> RequestWrapper.java:137)
> >>>
> >>>           at
> >> javax.servlet.http.HttpServletRequestWrapper.getContextPath(HttpServl
> >> et
> >> RequestWrapper.java:137)
> >>>
> >>>           at
> >> org.springframework.security.web.authentication.logout.LogoutFilter$F
> >> ilter
> >> ProcessUrlRequestMatcher.matches(LogoutFilter.java:167)
> >>>
> >>>           at
> >> org.springframework.security.web.authentication.logout.LogoutFilter.r
> >> equir
> >> esLogout(LogoutFilter.java:122)
> >>>
> >>>           at
> >> org.springframework.security.web.authentication.logout.LogoutFilter.d
> >> oFilt
> >> 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(OncePerR
> >> eq
> >> uestFilter.java:107)
> >>>
> >>>           at
> >> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.
> >> doFilt
> >> er(FilterChainProxy.java:342)
> >>>
> >>>           at
> >> org.springframework.security.web.authentication.preauth.AbstractPreAu
> >> th
> >>
> enticatedProcessingFilter.doFilter(AbstractPreAuthenticatedProcessingFilter.
> >> java:94)
> >>>
> >>>           at
> >> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.
> >> doFilt
> >> er(FilterChainProxy.java:342)
> >>>
> >>>           at
> >> org.springframework.security.web.context.SecurityContextPersistenceFi
> >> lter
> >> .doFilter(SecurityContextPersistenceFilter.java:87)
> >>>
> >>>           at
> >> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.
> >> doFilt
> >> er(FilterChainProxy.java:342)
> >>>
> >>>           at
> >> org.springframework.security.web.FilterChainProxy.doFilterInternal(Fi
> >> lterCh
> >> ainProxy.java:192)
> >>>
> >>>           at
> >> org.springframework.security.web.FilterChainProxy.doFilter(FilterChai
> >> nProx
> >> y.java:160)
> >>>
> >>>           at
> >> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(D
> >> eleg
> >> atingFilterProxy.java:347)
> >>>
> >>>           at
> >> org.springframework.web.filter.DelegatingFilterProxy.doFilter(Delegat
> >> ingFilt
> >> erProxy.java:263)
> >>>
> >>>           at
> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
> >> icationFi
> >> lterChain.java:181)
> >>>
> >>>           at
> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
> >> ilterChai
> >> 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-unsubscribe@tomcat.apache.org
> >> For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat V8.5.85

Posted by Mark Thomas <ma...@apache.org>.
On 27/02/2023 17:27, jonmcalexander@wellsfargo.com.INVALID wrote:
> Will this result in a quick move to 8.5.87 to replace 8.5.86?

Yes. Tag expected later today. (9.0.x release vote is already in progress).

Mark


> 
> Dream * Excel * Explore * Inspire
> Jon McAlexander
> Senior Infrastructure Engineer
> Asst. Vice President
> He/His
> 
> Middleware Product Engineering
> Enterprise CIO | EAS | Middleware | Infrastructure Solutions
> 
> 8080 Cobblestone Rd | Urbandale, IA 50322
> MAC: F4469-010
> Tel 515-988-2508 | Cell 515-988-2508
> 
> jonmcalexander@wellsfargo.com
> This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation.
> 
>> -----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-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Tomcat V8.5.85

Posted by jo...@wellsfargo.com.INVALID.
Will this result in a quick move to 8.5.87 to replace 8.5.86?

Dream * Excel * Explore * Inspire
Jon McAlexander
Senior Infrastructure Engineer
Asst. Vice President
He/His

Middleware Product Engineering
Enterprise CIO | EAS | Middleware | Infrastructure Solutions

8080 Cobblestone Rd | Urbandale, IA 50322
MAC: F4469-010
Tel 515-988-2508 | Cell 515-988-2508

jonmcalexander@wellsfargo.com
This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation.

> -----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-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat V8.5.85

Posted by Mark Thomas <ma...@apache.org>.

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.eyJ1c2VyX3Byb2ZpbGUiOiJ7XCJfcGVybWFuZW50XCI6dHJ1ZSxcInV1aWRcIjpcIjg5MjM1MmZm’
> 
> 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(RequestFacade.java:605)
> 
>          at javax.servlet.http.HttpServletRequestWrapper.getContextPath(HttpServletRequestWrapper.java:137)
> 
>          at javax.servlet.http.HttpServletRequestWrapper.getContextPath(HttpServletRequestWrapper.java:137)
> 
>          at org.springframework.security.web.authentication.logout.LogoutFilter$FilterProcessUrlRequestMatcher.matches(LogoutFilter.java:167)
> 
>          at org.springframework.security.web.authentication.logout.LogoutFilter.requiresLogout(LogoutFilter.java:122)
> 
>          at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:94)
> 
>          at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> 
>          at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50)
> 
>          at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
> 
>          at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> 
>          at org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter.doFilter(AbstractPreAuthenticatedProcessingFilter.java:94)
> 
>          at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> 
>          at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
> 
>          at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
> 
>          at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
> 
>          at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
> 
>          at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:347)
> 
>          at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:263)
> 
>          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:181)
> 
>          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:156)
> 
> I could not find any information related to above exception. Any workaround to fix the issue ?

Looks like an instance of:
https://bz.apache.org/bugzilla/show_bug.cgi?id=66488

No work-around. I expect the March releases to have a fix for this.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org