You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Joink <st...@insigma.no> on 2009/01/14 23:40:04 UTC
REST plugin and id params with dot's causes 404 not found
I'm using Struts 2.1.2 and the REST plugin. I have a controller that is used
to provide user information, and this works like a charm as long as the id
parameter doesn't contain a dot.
Eg: /app/users/james works as expected. But when i try with
/app/users/james.bond I get a 404 since Struts interprets the .bond as an
extension rather than part of the id.
Any one know how to solve this?
--
View this message in context: http://www.nabble.com/REST-plugin-and-id-params-with-dot%27s-causes-404-not-found-tp21466905p21466905.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: REST plugin and id params with dot's causes 404 not found
Posted by Alex Milanovic <al...@iogeo.com>.
I tried adding .json but it didn't work. Suppose your app puts a user name
in the ID field, the app has to prohibit user names with dots. This makes me
wonder what other characters cannot appear in a resource ID? Could people
working on the REST plugin specify what characters can appear in an ID?
Thanks,
Alex
On Wed, Jan 14, 2009 at 11:40 PM, Joink <st...@insigma.no> wrote:
>
> I'm using Struts 2.1.2 and the REST plugin. I have a controller that is
> used
> to provide user information, and this works like a charm as long as the id
> parameter doesn't contain a dot.
>
> Eg: /app/users/james works as expected. But when i try with
> /app/users/james.bond I get a 404 since Struts interprets the .bond as an
> extension rather than part of the id.
>
> Any one know how to solve this?
> --
> View this message in context:
> http://www.nabble.com/REST-plugin-and-id-params-with-dot%27s-causes-404-not-found-tp21466905p21466905.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
--
Alex Milanovic, MBA & B.Sc.
Technical Director
IOGEO
Girona, Spain
Cell: +34 (639) 972-345