Spring Framework HttpRequestHandler failure

Posted by sharadva on Stack Overflow See other posts from Stack Overflow or by sharadva
Published on 2010-03-29T09:56:33Z Indexed on 2010/03/29 16:53 UTC
Read the original article Hit count: 217

Filed under:
|
|

We have an application which communicates via REST requests made by clients.

The REST requests contain "region name" and a "ID" as parameters

So, a request would look something like this (for a DELETE)

http://host:port/regionnameID  

These REST requests between regions in a federation are properly URL encoded

I find that these request fail if the region name has a slash ("/") in it.

Then, the request would look like so

http://host:port/region/nameID  

This is due to incorrect interpretation of the Rest URL by HttpRequesthandler when there is a '/' in the region name.

Now, we have no control over clients sending REST request with "/" in the Region name.

Is there any method / configuration / workaround that can be done to prevent the HttpRequestHandler from returning 404

© Stack Overflow or respective owner

Related posts about spring

Related posts about java