Details
Description
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:
@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)); }
Attachments
Issue Links
- is related to
-
CXF-8278 @Path with regular expression containing parentheses does not resolve correctly
- Closed
- links to