[
https://issues.apache.org/jira/browse/CXF-2014?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrzej Michalec closed CXF-2014.
---------------------------------
Resolution: Fixed
Fixed in URITemplate implementation.
> @Path fails when uses variable with regexp containing curly braces.
> -------------------------------------------------------------------
>
> Key: CXF-2014
> URL: https://issues.apache.org/jira/browse/CXF-2014
> Project: CXF
> Issue Type: Bug
> Components: REST
> Affects Versions: 2.2
> Reporter: Andrzej Michalec
> Assignee: Andrzej Michalec
> Priority: Minor
>
> According to JAX-RS spec 1.0 one can use @Path annotation that specifies
> regular expression to match variable content. Most of regexps work fine e.g.
> @Path("{var:[a-zA-Z]+}"), however use of curly braces in regexp causes
> failure of JAX-RS in runtime e.g. this @Path("{var:\d{2,}}") fails.
> From first look on URITemplate class responsible for URI regexps, its
> internal matcher treats first closing curly brace as ending of whole
> expression.
> cheers,
> andy
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.