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

Sergey Beryozkin commented on CXF-6853:
---------------------------------------

This needs to be reverted, see
https://jax-rs-spec.java.net/nonav/2.0-rev-a/apidocs/javax/ws/rs/Path.html#value():

"Matching of request URIs to URI templates is performed against encoded path 
values"

What this means is that the container/runtime must not decode the path, and 
your change breaks that.
Somewhere either in the Undertow or in your CXF wrapper code you are decoding 
too early.
I'm adding a test showing that a percent encoded value in ApplicationPath is 
not a problem without your change.

Once again, lets review/discuss sensitive changes first


> Support encoded value in @ApplicationPath
> -----------------------------------------
>
>                 Key: CXF-6853
>                 URL: https://issues.apache.org/jira/browse/CXF-6853
>             Project: CXF
>          Issue Type: Task
>          Components: JAX-RS
>    Affects Versions: 3.1.6, 3.0.9
>            Reporter: Jim Ma
>            Assignee: Jim Ma
>             Fix For: 3.0.10, 3.1.7, 3.2.0
>
>
> If @ApplicationPath value is  an encoded value, cxf doesn't decode and handle 
> this correctly. 
> @ApplicationPath("ApplicationPath%21")
> public class MyApp extends Application {
> }
>     



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to