dev@jsr311.java.net

Empty path segments and path params

From: Bill Burke <bburke_at_redhat.com>
Date: Tue, 12 Aug 2008 15:12:29 -0400

In the javadoc of @Path you state that a path param with no regex should
be "[^/]+". I think it should be "[^/]*". Reason? Consider this:

@Path("{1}/{2}/{3}")

GET /;a=a/;b=b/;c=c


For path param's 1-3 the path segment (excluding matrix parameters) is
"" and the matching path could be "///".

Bill

--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com