You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Sric <sc...@funmobility.com> on 2008/10/13 23:02:47 UTC
Slashes in request parameters for a JAX-RS service
I have defined a jax-rs service that accepts a string value as one of the
path parameters using CXF 2.1. I have deployed this in Tomcat 5.5. I have
configured Tomcat so that it will accept encoded forward and back slash
arguments (ex: Good%5Cmorning). However when I try to submit a string with
either an encoded forward or backward slash, I always get an HTTP 500 error
with a service error stating - No operation matching request path exception
on server. CXF seems to interpret the 1 param as 2 request parameters -
Good/Morning in the example I mentioned earlier. Is it possible to configure
CXF to interpret the encoded slash as a part of a single string parameter.
Thanks
Sriram
--
View this message in context: http://www.nabble.com/Slashes-in-request-parameters-for-a-JAX-RS-service-tp19962878p19962878.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: Slashes in request parameters for a JAX-RS service
Posted by Sergey Beryozkin <se...@progress.com>.
I was educated a bit on how to deal with encoded URIs, it's fixed now, though I'll merge to 2.1.x branches a bit later today
Thanks for raising the issue
Sergey
----- Original Message -----
From: "Sergey Beryozkin" <sb...@progress.com>
To: <us...@cxf.apache.org>
Sent: Tuesday, October 14, 2008 8:55 AM
Subject: RE: Slashes in request parameters for a JAX-RS service
Yea, looks like so.
I had a chance to look at this bug briefly, what happens is that by the
time
JAX-RS impl gets the control, it has a fully decoded URI already, like
/books/Good/morning, so the decoding happens much earlier in the
stack...
I'll try to get to the bottom of it asap - I'm a bit overwhelmed with
the other work though at the moment
Cheers, Sergey
-----Original Message-----
From: Tarjei Huse [mailto:tarjei@scanmine.com]
Sent: 14 October 2008 08:47
To: users@cxf.apache.org
Subject: Re: Slashes in request parameters for a JAX-RS service
Sric wrote:
> I have defined a jax-rs service that accepts a string value as one of
the
> path parameters using CXF 2.1. I have deployed this in Tomcat 5.5. I
have
> configured Tomcat so that it will accept encoded forward and back
slash
> arguments (ex: Good%5Cmorning). However when I try to submit a string
with
> either an encoded forward or backward slash, I always get an HTTP 500
error
> with a service error stating - No operation matching request path
exception
> on server. CXF seems to interpret the 1 param as 2 request parameters
-
> Good/Morning in the example I mentioned earlier. Is it possible to
configure
> CXF to interpret the encoded slash as a part of a single string
parameter.
>
Hi, I think you may have hit this bug:
http://issues.apache.org/jira/browse/CXF-1820
I ended up using Jersey instead.
Regards,
Tarjei
> Thanks
> Sriram
>
RE: Slashes in request parameters for a JAX-RS service
Posted by Sergey Beryozkin <sb...@progress.com>.
Yea, looks like so.
I had a chance to look at this bug briefly, what happens is that by the
time
JAX-RS impl gets the control, it has a fully decoded URI already, like
/books/Good/morning, so the decoding happens much earlier in the
stack...
I'll try to get to the bottom of it asap - I'm a bit overwhelmed with
the other work though at the moment
Cheers, Sergey
-----Original Message-----
From: Tarjei Huse [mailto:tarjei@scanmine.com]
Sent: 14 October 2008 08:47
To: users@cxf.apache.org
Subject: Re: Slashes in request parameters for a JAX-RS service
Sric wrote:
> I have defined a jax-rs service that accepts a string value as one of
the
> path parameters using CXF 2.1. I have deployed this in Tomcat 5.5. I
have
> configured Tomcat so that it will accept encoded forward and back
slash
> arguments (ex: Good%5Cmorning). However when I try to submit a string
with
> either an encoded forward or backward slash, I always get an HTTP 500
error
> with a service error stating - No operation matching request path
exception
> on server. CXF seems to interpret the 1 param as 2 request parameters
-
> Good/Morning in the example I mentioned earlier. Is it possible to
configure
> CXF to interpret the encoded slash as a part of a single string
parameter.
>
Hi, I think you may have hit this bug:
http://issues.apache.org/jira/browse/CXF-1820
I ended up using Jersey instead.
Regards,
Tarjei
> Thanks
> Sriram
>
Re: Slashes in request parameters for a JAX-RS service
Posted by Tarjei Huse <ta...@scanmine.com>.
Sric wrote:
> I have defined a jax-rs service that accepts a string value as one of the
> path parameters using CXF 2.1. I have deployed this in Tomcat 5.5. I have
> configured Tomcat so that it will accept encoded forward and back slash
> arguments (ex: Good%5Cmorning). However when I try to submit a string with
> either an encoded forward or backward slash, I always get an HTTP 500 error
> with a service error stating - No operation matching request path exception
> on server. CXF seems to interpret the 1 param as 2 request parameters -
> Good/Morning in the example I mentioned earlier. Is it possible to configure
> CXF to interpret the encoded slash as a part of a single string parameter.
>
Hi, I think you may have hit this bug:
http://issues.apache.org/jira/browse/CXF-1820
I ended up using Jersey instead.
Regards,
Tarjei
> Thanks
> Sriram
>