Hi
On 18/06/14 10:51, nikosdim wrote:
Hi all

I have a rest web service in which I use FIQL to get data back. Here is an
overview of my service

@GET
@Path("apps;{search}")
@Produces({ "application/javascript", MediaType.APPLICATION_JSON,
                MediaType.APPLICATION_XML })
public Response getApplications(@PathParam("search") String
searchExpression) {
                
                        //my code
                }


The problem that I am facing is that I cannot use a forward slash in my FIQL
expression.
For example

http://myserver.com/webapp/apps;applicationName==test1
The link above will return data as expected but if the applicationName
contains a slash e.g. "test/1"

http://myserver.com/webapp/apps;applicationName==test/1
  then I get 404 back. I tried to escape the slash with %2f but I still get
404.

Works for me, but I'm using Jetty.
If you use Tomcat then it may be decoding %2F too early and the match fails due to the default template not allowing for "/"

if so then either try setting
Tomcat "org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH"

or use a regular expression in the template var allowing for "/"

HTH, Sergey

Any ideas?

Thanks



--
View this message in context: 
http://cxf.547215.n5.nabble.com/Issue-with-forward-slash-in-FIQL-expression-using-matrix-parameters-tp5745308.html
Sent from the cxf-user mailing list archive at Nabble.com.



--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com

Reply via email to