You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2016/04/01 11:59:25 UTC

[jira] [Commented] (CXF-6853) Support encoded value in @ApplicationPath

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

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

Or decode it before setting it as part of JAXRSServerFactoryBean overall path, but I think it would be a hack. 

As I said ApplicationPath is not meant to be part of the path against which the JAX-RS selection algorithm is trying to match @Path values. It is a servlet URL pattern.

> 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: Sergey Beryozkin
>             Fix For: 3.0.10, 3.1.7, 3.2.0
>
>
> If @ApplicationPath value is  an encoded value, if client send request to http://localhost:8080/Application!/myresource and get 404 .
> @ApplicationPath("ApplicationPath%21")
> public class MyApp extends Application {
>   public java.util.Set<java.lang.Class<?>> getClasses() {
>         Set<Class<?>> resources = new HashSet<Class<?>>();
>         resources.add(MyResource.class);
>         return resources;
>     }   
> }
>     



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