users@jersey.java.net

Trouble with backslashes using _at_Path annotations

From: City Link Web Development Team <phpteam_at_city-link.co.uk>
Date: Thu, 04 Jun 2009 14:27:04 +0100

Hi,

Hope anyone can help with this...?


We have a bit of code like this:
public class TrackingResource
{
    @GET
    @Path("/{tracking_id :.+ }")
    public TrackingConverter getConsignment(@PathParam("tracking_id")
String trackingId


which we need to catch *any* character as a variable trackingId. The
characters ARE being escaped and all of them work except for \
(backslash). Even forward slash works ok. Backslash never resolves to
the function and we just get a blank page come up, no 404, no server
things logged.

Going to /test%5C fails, when I'd expect the variable trackingId to
contain "test\"

Does anyone have any idea how to work around this? Annotation? Server
Settings? Bug? This is a critical thing for us.

Thanks,
-- 
David Harper
Web Application Developer
City Link - Head Office
www.city-link.co.uk <http://www.city-link.co.uk>
_____________________________________________________________________
The information contained in this e-mail is intended only for the
individual to whom it is addressed. It may contain privileged and
confidential information. If you have received this message in
error or there are any problems, please notify the sender
immediately and delete the message from your computer. The
unauthorised use, disclosure, copying or alteration of this
message is forbidden. This message has been checked for all
known viruses by City Link prior to sending.