Jim Ma created CXF-8594:
---------------------------
Summary: Regular expression parameter with non-capturing group
doesn't work
Key: CXF-8594
URL: https://issues.apache.org/jira/browse/CXF-8594
Project: CXF
Issue Type: Bug
Components: JAX-RS
Affects Versions: 3.3.11, 3.4.4
Reporter: Jim Ma
Assignee: Jim Ma
Fix For: 3.3.12, 3.4.5, 3.5.0
After https://issues.apache.org/jira/browse/CXF-8278 is resolved, the
non-capturing group regular expression for path parameter doesn't work.
The following test case is a reproducer for this issue:
{code:java}
@Test
public void testNonCapturingGroup() {
URITemplate t1 = new URITemplate("/{name: (?:cxf|CXF)}");
MultivaluedMap<String, String> values = new MetadataMap<>();
assertTrue("should match '/cxf' url", t1.match("/cxf", values));
Assert.assertEquals("cxf", values.get("name").get(0));
}
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)