users@jersey.java.net

[Jersey] Problem with curly braces in request parameter value

From: Eugene Strokin <eugene_at_strokin.info>
Date: Fri, 30 May 2014 16:57:53 -0400

Hello,
I have inhereted old restful services which I need to migrate to Jersey.
One of the calls looks like this:
/myService?myParam={something,other}
I'm getting exception:

Illegal character "," at position 27 is not allowed as a part of a
name in a path template "myParam={something,other}"

All I need to do, is just get value of the parameter. But I cannot
change the format of the value. It mast by like this
myParam={something,other}

If I remove curly braces everything works.

How can I fix this problem?

Thank you,

Eugene