users@jersey.java.net

uri matching ambiguity?

From: <FSauer_at_dsthealthsolutions.com>
Date: Thu, 5 Jun 2008 15:23:43 -0500

http://localhost:8080/services/clientd/members/xxx/providers?v=1


causes an interesting problem related to (I suspect) eager versus lazy
evaluation of regular expressions


We have these two toplevel resource classes annotated with:

@Path("/{tenant}/providers")

and

@Path("/{tenant}/members")

the last one has a method annotated with:

        @GET
        @Path("{id}/providers")
        @ProduceMime("application/xml")


and I want to given URI to match "/{tenant}/members/{id}/providers"
with tenant=clientd and id=xxx, however, it ends up in
"/{tenant}/providers" with tenant=clientd/members/xxx


Is that per spec or is this a bug?


Frank


-----------------------------------------
This e-mail and any attachments are intended only for the
individual or company to which it is addressed and may contain
information which is privileged, confidential and prohibited from
disclosure or unauthorized use under applicable law. If you are
not the intended recipient of this e-mail, you are hereby notified
that any use, dissemination, or copying of this e-mail or the
information contained in this e-mail is strictly prohibited by the
sender. If you have received this transmission in error, please
return the material received to the sender and delete all copies
from your system.