Hi Thierry,

But in escapes URLs, escaped slashs and backslahs are still slashs and 
backslahs. If my parameters consist of Windows or Unix path separators, there 
will be problems,

e.g., 

Application:
router.attach("/path/{path}/afile/{filename}", AFileResource.class);
AFileResource:
this.systemId = (String) request.getAttributes().get("path");

So when the client calls with the link below, 

on Unix, it is: "/path//tmp/afile/abc.txt"
on Windows, it is: "/path/c:\\temp/afile/abc.txt"

it will result in a 404 (not found) exception where the client call has been 
passed to Application but rejected rite away without passed to AFileResource.

thanks, billy

Reply via email to