tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Meen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TOMEE-2467) Improved CXFJAXRSFilter logic to fix non-CXF resource 404 responses
Date Thu, 07 Feb 2019 20:00:00 GMT

    [ https://issues.apache.org/jira/browse/TOMEE-2467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16763036#comment-16763036
] 

James Meen commented on TOMEE-2467:
-----------------------------------

Linked PR 388 in github awaiting merge approval

> Improved CXFJAXRSFilter logic to fix non-CXF resource 404 responses
> -------------------------------------------------------------------
>
>                 Key: TOMEE-2467
>                 URL: https://issues.apache.org/jira/browse/TOMEE-2467
>             Project: TomEE
>          Issue Type: Bug
>          Components: TomEE Core Server
>    Affects Versions: 8.0.0-M2
>            Reporter: James Meen
>            Priority: Major
>             Fix For: 8.0.0-M3
>
>
> When a JAX-RS endpoints are added to a context, the CXF JAX-RS Filter is added to the
request filter chain automatically.  This applies to both CXF and non-CXF JAX-RS applications.
> Until now, there was a problem with the CXF JAX-RS Filter where it processes some requests
treating them as CXF endpoints (e.g. JSPs and customer filter mappings e.g. .abc file extensions). 
This produces a 404 Not Found response even if the non-CXF resource did exist because CXF
intercepted it but didn't find a valid CXF resource.
> This problem became much more prominent with the addition of MicroProfile because the
new extensions add REST endpoints to the application by default, enabling the CXF JAX-RS
Filter automatically - which breaks existing functionality (producing 404s).
> This improvement changes the CXF JAX-RS Filter to check if the requested resource matches
one of the valid CXF resource endpoints in the application.  If it does not, then the request
is processed by TomEE without being intercepted by CXF.  Existing behaviour for valid CXF
resources remains the same.
> This will enable all non-CXF based JAX-RS applications functionality to work in TomEE,
where in the past 404 errors would be experienced.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message