[ 
https://issues.apache.org/jira/browse/CXF-3454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13019042#comment-13019042
 ] 

Sergey Beryozkin commented on CXF-3454:
---------------------------------------

Every optional parameter has groups, so it is just very tricky to figure out 
which group corresponds to a captured path var and which represents the regex 
output. What are you trying to do with multiple optional params ?

thanks

> CXFRS doesn't work when there are multiple optional parameters in a @Path 
> annotation
> ------------------------------------------------------------------------------------
>
>                 Key: CXF-3454
>                 URL: https://issues.apache.org/jira/browse/CXF-3454
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.4
>            Reporter: Guillermo Castro
>              Labels: jaxrs
>         Attachments: URITemplateTest.java
>
>
> In JAX-RS you can define custom patterns for path variables, which allows you 
> to define optional parameters that can be present or not. Currently, CXF only 
> works if you only have 1 optional parameter in the @Path (see test 
> "URITemplateTest.testExpressionWithNestedGroupAndTwoVars2()", but fails for 
> paths with 2 or more optional parameters.

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

Reply via email to