cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrzej Michalec (JIRA)" <j...@apache.org>
Subject [jira] Closed: (CXF-2014) @Path fails when uses variable with regexp containing curly braces.
Date Tue, 14 Apr 2009 17:53:14 GMT

     [ 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.


Mime
View raw message