You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Xi Zhang (JIRA)" <ji...@apache.org> on 2011/06/07 17:15:58 UTC

[jira] [Created] (CXF-3573) CXF/JAX-RS can not handle encoded urls that contain a jsessionid

CXF/JAX-RS can not handle encoded urls that contain a jsessionid
----------------------------------------------------------------

                 Key: CXF-3573
                 URL: https://issues.apache.org/jira/browse/CXF-3573
             Project: CXF
          Issue Type: Bug
          Components: JAX-RS
    Affects Versions: 2.2.12
            Reporter: Xi Zhang


CXF/JAX-RS stack can not handle encoded urls that contain a jsessionid, 
I get the warning in the logger after ich try to get data thru REST URL that contains a session cookie lsited below
http://localhost:8099/workplace/service;jsessionid=ctjy3rhkbyya1j73rceiw2rup?patientId=1109&responseTimeZone=America%2FLos_Angeles&noCache=1307087541416


Jun 7, 2011 4:58:40 PM org.apache.cxf.jaxrs.utils.JAXRSUtils findTargetMethod
WARNING: No operation matching request path /;jsessionid=ctjy3rhkbyya1j73rceiw2rup is found, HTTP Method : GET, ContentType : */*, Accept : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,.
Jun 7, 2011 4:58:40 PM org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper toResponse
WARNING: WebApplicationException has been caught : no cause is available
2011-06-07 16:58:40,457 WARN  o.a.cxf.jaxrs.utils.JAXRSUtils[]: No operation matching request path /;jsessionid=ctjy3rhkbyya1j73rceiw2rup is found, HTTP Method : GET, ContentType : */*, Accept : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,.
2011-06-07 16:58:40,473 WARN  o.a.c.j.i.WebApplicationExceptionMapper[]: WebApplicationException has been caught : no cause is available


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CXF-3573) CXF/JAX-RS can not handle encoded urls that contain a jsessionid

Posted by "Xi Zhang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-3573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13045823#comment-13045823 ] 

Xi Zhang commented on CXF-3573:
-------------------------------

Hi,
for your request, I have no annotated Path direct in the java resource class, I configured the path only in the Spring ApplicationContext thru the address attribute like below

	<jaxrs:server id="reviewHistoryService" address="/ReviewHistory">
		<jaxrs:serviceBeans>
			<ref bean="reviewHistoryResource" />
		</jaxrs:serviceBeans>
	</jaxrs:server>
        <bean id="reviewHistoryResource" ...

by the way , if I enter a url to invoke REST services without the jsessionid, I can get the data response correctly, the JAX-RS stack can map this URL to matching operations.

Hopefully this can help you to clarify the issue.

Regards 

> CXF/JAX-RS can not handle encoded urls that contain a jsessionid
> ----------------------------------------------------------------
>
>                 Key: CXF-3573
>                 URL: https://issues.apache.org/jira/browse/CXF-3573
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.2.12
>            Reporter: Xi Zhang
>
> CXF/JAX-RS stack can not handle encoded urls that contain a jsessionid, 
> I get the warning in the logger after ich try to get data thru REST URL that contains a session cookie lsited below
> http://localhost:8099/workplace/service;jsessionid=ctjy3rhkbyya1j73rceiw2rup?patientId=1109&responseTimeZone=America%2FLos_Angeles&noCache=1307087541416
> Jun 7, 2011 4:58:40 PM org.apache.cxf.jaxrs.utils.JAXRSUtils findTargetMethod
> WARNING: No operation matching request path /;jsessionid=ctjy3rhkbyya1j73rceiw2rup is found, HTTP Method : GET, ContentType : */*, Accept : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,.
> Jun 7, 2011 4:58:40 PM org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper toResponse
> WARNING: WebApplicationException has been caught : no cause is available
> 2011-06-07 16:58:40,457 WARN  o.a.cxf.jaxrs.utils.JAXRSUtils[]: No operation matching request path /;jsessionid=ctjy3rhkbyya1j73rceiw2rup is found, HTTP Method : GET, ContentType : */*, Accept : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,.
> 2011-06-07 16:58:40,473 WARN  o.a.c.j.i.WebApplicationExceptionMapper[]: WebApplicationException has been caught : no cause is available

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CXF-3573) CXF/JAX-RS can not handle encoded urls that contain a jsessionid

Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-3573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13045612#comment-13045612 ] 

Sergey Beryozkin commented on CXF-3573:
---------------------------------------

I'll investigate.
How is your root resource annotated ? Particularly, what are class and resource method Path values ?

> CXF/JAX-RS can not handle encoded urls that contain a jsessionid
> ----------------------------------------------------------------
>
>                 Key: CXF-3573
>                 URL: https://issues.apache.org/jira/browse/CXF-3573
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.2.12
>            Reporter: Xi Zhang
>
> CXF/JAX-RS stack can not handle encoded urls that contain a jsessionid, 
> I get the warning in the logger after ich try to get data thru REST URL that contains a session cookie lsited below
> http://localhost:8099/workplace/service;jsessionid=ctjy3rhkbyya1j73rceiw2rup?patientId=1109&responseTimeZone=America%2FLos_Angeles&noCache=1307087541416
> Jun 7, 2011 4:58:40 PM org.apache.cxf.jaxrs.utils.JAXRSUtils findTargetMethod
> WARNING: No operation matching request path /;jsessionid=ctjy3rhkbyya1j73rceiw2rup is found, HTTP Method : GET, ContentType : */*, Accept : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,.
> Jun 7, 2011 4:58:40 PM org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper toResponse
> WARNING: WebApplicationException has been caught : no cause is available
> 2011-06-07 16:58:40,457 WARN  o.a.cxf.jaxrs.utils.JAXRSUtils[]: No operation matching request path /;jsessionid=ctjy3rhkbyya1j73rceiw2rup is found, HTTP Method : GET, ContentType : */*, Accept : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,.
> 2011-06-07 16:58:40,473 WARN  o.a.c.j.i.WebApplicationExceptionMapper[]: WebApplicationException has been caught : no cause is available

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (CXF-3573) CXF/JAX-RS can not handle encoded urls that contain a jsessionid

Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-3573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Beryozkin resolved CXF-3573.
-----------------------------------

    Resolution: Fixed

> CXF/JAX-RS can not handle encoded urls that contain a jsessionid
> ----------------------------------------------------------------
>
>                 Key: CXF-3573
>                 URL: https://issues.apache.org/jira/browse/CXF-3573
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.2.12
>            Reporter: Xi Zhang
>            Assignee: Sergey Beryozkin
>             Fix For: 2.4.1, 2.3.5
>
>
> CXF/JAX-RS stack can not handle encoded urls that contain a jsessionid, 
> I get the warning in the logger after ich try to get data thru REST URL that contains a session cookie lsited below
> http://localhost:8099/workplace/service;jsessionid=ctjy3rhkbyya1j73rceiw2rup?patientId=1109&responseTimeZone=America%2FLos_Angeles&noCache=1307087541416
> Jun 7, 2011 4:58:40 PM org.apache.cxf.jaxrs.utils.JAXRSUtils findTargetMethod
> WARNING: No operation matching request path /;jsessionid=ctjy3rhkbyya1j73rceiw2rup is found, HTTP Method : GET, ContentType : */*, Accept : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,.
> Jun 7, 2011 4:58:40 PM org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper toResponse
> WARNING: WebApplicationException has been caught : no cause is available
> 2011-06-07 16:58:40,457 WARN  o.a.cxf.jaxrs.utils.JAXRSUtils[]: No operation matching request path /;jsessionid=ctjy3rhkbyya1j73rceiw2rup is found, HTTP Method : GET, ContentType : */*, Accept : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,.
> 2011-06-07 16:58:40,473 WARN  o.a.c.j.i.WebApplicationExceptionMapper[]: WebApplicationException has been caught : no cause is available

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CXF-3573) CXF/JAX-RS can not handle encoded urls that contain a jsessionid

Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-3573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13045921#comment-13045921 ] 

Sergey Beryozkin commented on CXF-3573:
---------------------------------------

By the way, the workaround is to have jaxrs:server/@address = "/"
and push "/ReviewHistory" to the root resource

> CXF/JAX-RS can not handle encoded urls that contain a jsessionid
> ----------------------------------------------------------------
>
>                 Key: CXF-3573
>                 URL: https://issues.apache.org/jira/browse/CXF-3573
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.2.12
>            Reporter: Xi Zhang
>            Assignee: Sergey Beryozkin
>             Fix For: 2.4.1, 2.3.5
>
>
> CXF/JAX-RS stack can not handle encoded urls that contain a jsessionid, 
> I get the warning in the logger after ich try to get data thru REST URL that contains a session cookie lsited below
> http://localhost:8099/workplace/service;jsessionid=ctjy3rhkbyya1j73rceiw2rup?patientId=1109&responseTimeZone=America%2FLos_Angeles&noCache=1307087541416
> Jun 7, 2011 4:58:40 PM org.apache.cxf.jaxrs.utils.JAXRSUtils findTargetMethod
> WARNING: No operation matching request path /;jsessionid=ctjy3rhkbyya1j73rceiw2rup is found, HTTP Method : GET, ContentType : */*, Accept : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,.
> Jun 7, 2011 4:58:40 PM org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper toResponse
> WARNING: WebApplicationException has been caught : no cause is available
> 2011-06-07 16:58:40,457 WARN  o.a.cxf.jaxrs.utils.JAXRSUtils[]: No operation matching request path /;jsessionid=ctjy3rhkbyya1j73rceiw2rup is found, HTTP Method : GET, ContentType : */*, Accept : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,.
> 2011-06-07 16:58:40,473 WARN  o.a.c.j.i.WebApplicationExceptionMapper[]: WebApplicationException has been caught : no cause is available

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CXF-3573) CXF/JAX-RS can not handle encoded urls that contain a jsessionid

Posted by "Xi Zhang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-3573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13045520#comment-13045520 ] 

Xi Zhang commented on CXF-3573:
-------------------------------

No improvement in the CXF releases tested: 2.3.3, 2.3.4, 2.4.0
I got always same warning

Jun 7, 2011 6:21:51 PM org.apache.cxf.jaxrs.utils.JAXRSUtils findTargetMethod
WARNING: No operation matching request path /;jsessionid=9fav5csenpgyuqq06ffgehpy is found, HTTP Method : GET, ContentType : */*, Accept : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,.
Jun 7, 2011 6:21:51 PM org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper toResponse
WARNING: WebApplicationException has been caught : no cause is available
2011-06-07 18:21:51,278 WARN  o.a.cxf.jaxrs.utils.JAXRSUtils[]: No operation matching request path /;jsessionid=9fav5csenpgyuqq06ffgehpy is found, HTTP Method : GET, ContentType : */*, Accept : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,.
2011-06-07 18:21:51,293 WARN  o.a.c.j.i.WebApplicationExceptionMapper[]: WebApplicationException has been caught : no cause is available


> CXF/JAX-RS can not handle encoded urls that contain a jsessionid
> ----------------------------------------------------------------
>
>                 Key: CXF-3573
>                 URL: https://issues.apache.org/jira/browse/CXF-3573
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.2.12
>            Reporter: Xi Zhang
>
> CXF/JAX-RS stack can not handle encoded urls that contain a jsessionid, 
> I get the warning in the logger after ich try to get data thru REST URL that contains a session cookie lsited below
> http://localhost:8099/workplace/service;jsessionid=ctjy3rhkbyya1j73rceiw2rup?patientId=1109&responseTimeZone=America%2FLos_Angeles&noCache=1307087541416
> Jun 7, 2011 4:58:40 PM org.apache.cxf.jaxrs.utils.JAXRSUtils findTargetMethod
> WARNING: No operation matching request path /;jsessionid=ctjy3rhkbyya1j73rceiw2rup is found, HTTP Method : GET, ContentType : */*, Accept : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,.
> Jun 7, 2011 4:58:40 PM org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper toResponse
> WARNING: WebApplicationException has been caught : no cause is available
> 2011-06-07 16:58:40,457 WARN  o.a.cxf.jaxrs.utils.JAXRSUtils[]: No operation matching request path /;jsessionid=ctjy3rhkbyya1j73rceiw2rup is found, HTTP Method : GET, ContentType : */*, Accept : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,.
> 2011-06-07 16:58:40,473 WARN  o.a.c.j.i.WebApplicationExceptionMapper[]: WebApplicationException has been caught : no cause is available

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CXF-3573) CXF/JAX-RS can not handle encoded urls that contain a jsessionid

Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-3573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13045474#comment-13045474 ] 

Sergey Beryozkin commented on CXF-3573:
---------------------------------------

Hi, can you please try CXF 2.3.4 or CXF 2.4.0 ? There were relevant changes there.

CXF 2.2.x branch is not officially supported anymore

thanks

> CXF/JAX-RS can not handle encoded urls that contain a jsessionid
> ----------------------------------------------------------------
>
>                 Key: CXF-3573
>                 URL: https://issues.apache.org/jira/browse/CXF-3573
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.2.12
>            Reporter: Xi Zhang
>
> CXF/JAX-RS stack can not handle encoded urls that contain a jsessionid, 
> I get the warning in the logger after ich try to get data thru REST URL that contains a session cookie lsited below
> http://localhost:8099/workplace/service;jsessionid=ctjy3rhkbyya1j73rceiw2rup?patientId=1109&responseTimeZone=America%2FLos_Angeles&noCache=1307087541416
> Jun 7, 2011 4:58:40 PM org.apache.cxf.jaxrs.utils.JAXRSUtils findTargetMethod
> WARNING: No operation matching request path /;jsessionid=ctjy3rhkbyya1j73rceiw2rup is found, HTTP Method : GET, ContentType : */*, Accept : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,.
> Jun 7, 2011 4:58:40 PM org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper toResponse
> WARNING: WebApplicationException has been caught : no cause is available
> 2011-06-07 16:58:40,457 WARN  o.a.cxf.jaxrs.utils.JAXRSUtils[]: No operation matching request path /;jsessionid=ctjy3rhkbyya1j73rceiw2rup is found, HTTP Method : GET, ContentType : */*, Accept : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,.
> 2011-06-07 16:58:40,473 WARN  o.a.c.j.i.WebApplicationExceptionMapper[]: WebApplicationException has been caught : no cause is available

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CXF-3573) CXF/JAX-RS can not handle encoded urls that contain a jsessionid

Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-3573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Beryozkin updated CXF-3573:
----------------------------------

    Fix Version/s: 2.3.5
                   2.4.1
         Assignee: Sergey Beryozkin

Reproduced it; happens only when root resource @Path value is empty or equal to "/"

> CXF/JAX-RS can not handle encoded urls that contain a jsessionid
> ----------------------------------------------------------------
>
>                 Key: CXF-3573
>                 URL: https://issues.apache.org/jira/browse/CXF-3573
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.2.12
>            Reporter: Xi Zhang
>            Assignee: Sergey Beryozkin
>             Fix For: 2.4.1, 2.3.5
>
>
> CXF/JAX-RS stack can not handle encoded urls that contain a jsessionid, 
> I get the warning in the logger after ich try to get data thru REST URL that contains a session cookie lsited below
> http://localhost:8099/workplace/service;jsessionid=ctjy3rhkbyya1j73rceiw2rup?patientId=1109&responseTimeZone=America%2FLos_Angeles&noCache=1307087541416
> Jun 7, 2011 4:58:40 PM org.apache.cxf.jaxrs.utils.JAXRSUtils findTargetMethod
> WARNING: No operation matching request path /;jsessionid=ctjy3rhkbyya1j73rceiw2rup is found, HTTP Method : GET, ContentType : */*, Accept : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,.
> Jun 7, 2011 4:58:40 PM org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper toResponse
> WARNING: WebApplicationException has been caught : no cause is available
> 2011-06-07 16:58:40,457 WARN  o.a.cxf.jaxrs.utils.JAXRSUtils[]: No operation matching request path /;jsessionid=ctjy3rhkbyya1j73rceiw2rup is found, HTTP Method : GET, ContentType : */*, Accept : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,.
> 2011-06-07 16:58:40,473 WARN  o.a.c.j.i.WebApplicationExceptionMapper[]: WebApplicationException has been caught : no cause is available

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CXF-3573) CXF/JAX-RS can not handle encoded urls that contain a jsessionid

Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-3573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13045876#comment-13045876 ] 

Sergey Beryozkin commented on CXF-3573:
---------------------------------------

I need to know how reviewHistoryResource is annotated.
Are you saying it looks like this:
// no @Path defaults to @Path("/")
public class ReviewHistoryResource {
  @GET
  public void getHistory() {...}

}

In other words, a request URI ends with something like

/ReviewHistory;jSessionId=somevalue?query1=value&query2=value

?

> CXF/JAX-RS can not handle encoded urls that contain a jsessionid
> ----------------------------------------------------------------
>
>                 Key: CXF-3573
>                 URL: https://issues.apache.org/jira/browse/CXF-3573
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.2.12
>            Reporter: Xi Zhang
>
> CXF/JAX-RS stack can not handle encoded urls that contain a jsessionid, 
> I get the warning in the logger after ich try to get data thru REST URL that contains a session cookie lsited below
> http://localhost:8099/workplace/service;jsessionid=ctjy3rhkbyya1j73rceiw2rup?patientId=1109&responseTimeZone=America%2FLos_Angeles&noCache=1307087541416
> Jun 7, 2011 4:58:40 PM org.apache.cxf.jaxrs.utils.JAXRSUtils findTargetMethod
> WARNING: No operation matching request path /;jsessionid=ctjy3rhkbyya1j73rceiw2rup is found, HTTP Method : GET, ContentType : */*, Accept : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,.
> Jun 7, 2011 4:58:40 PM org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper toResponse
> WARNING: WebApplicationException has been caught : no cause is available
> 2011-06-07 16:58:40,457 WARN  o.a.cxf.jaxrs.utils.JAXRSUtils[]: No operation matching request path /;jsessionid=ctjy3rhkbyya1j73rceiw2rup is found, HTTP Method : GET, ContentType : */*, Accept : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,.
> 2011-06-07 16:58:40,473 WARN  o.a.c.j.i.WebApplicationExceptionMapper[]: WebApplicationException has been caught : no cause is available

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira