-
Bug
-
Resolution: Done
-
Major
-
3.0.19.Final
-
None
-
This is not a bug. It was user error.
When a @Path annotation that contains regex with parenthesis is applied to a resource locator it doesn't work correctly. For example, the following works correctly:
@GET @Path("{name: (works|WORKS)}") public Response works(@PathParam("name") String name) { SubResource sub = new SubResource(name); return sub.get(); }
But the following does not, it returns a 404 error response:
@Path("{name: (fails|FAILS)}") public SubResource fails(@PathParam("name") String name) { return new SubResource(name); }
I am attaching a simple application that reproduces this.
The same application used to work correctly with JBoss 7 and Resteasy 2.3.2.
- is cloned by
-
JBEAP-7946 [LP - RHV product] (7.1.0) Regex with parenthesis doesn't work with resource locator
- Closed
- is related to
-
JBEAP-7948 [LP - RHV product] (7.0.z) Regex with parenthesis doesn't work with resource locator
- Closed