cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Ma (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-6853) Support encoded value in @ApplicationPath
Date Thu, 07 Apr 2016 10:03:25 GMT

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

Jim Ma commented on CXF-6853:
-----------------------------

I see what you mean. Jaxrs spec section 2.3.2  says that @ApplicationPath value should be
finally put in servlet mapping.  From the JAXRSServerFactoryBean and CXFNonSpringJaxrsServlet,
I wrongly thought this could be the thing cxf can handle.

> 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 .
> {code}
> @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;
>     }   
> }
> {code}
>     



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

Mime
View raw message