Hi
On 07/07/14 12:19, nikosdim wrote:
One example is shown below
I have a services' resource and I want to filter based on the fields
serviceClass of value "PROCMON" and serviceInstance of value "director;-D"
So my url ends up like this
http://my.com/appl/services;serviceClass==PROCMON;serviceInstance==director%3B-D
Is it actually
http://my.com/appl/services?serviceClass==PROCMON;serviceInstance==director%3B-D
(note, it is '?' as opposed to ';')
It seems that %3B is getting resolved to ; from searchContext.getCondition
If we have
http://my.com/appl/services?serviceClass==PROCMON;serviceInstance==director%3B-D
then yes I can see it can be a problem, at the moment the query is
decoded in SearchContext.
or if you do have
http://my.com/appl/services;serviceClass==PROCMON;serviceInstance==director%3B-D
then do you access the expression as a PathParam and then ask the
context to convert it to the condition ? If yes then just add JAX-RS
@Encoded to the PathParam and it will do it
Let me know please how it goes
Thanks, Sergey
and is looking for a -D field in my Service class which does not exist and
it is throwing a NullPointerException.
Is there any way to avoid this?
Thanks
--
View this message in context:
http://cxf.547215.n5.nabble.com/How-to-escape-semicolon-when-matrix-parameters-FIQL-are-used-tp5746002p5746090.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