REST Namelists: Assymetric get/put calls.
Put operation does not handle ampersands properly. It complains that it is looking for an entity name. Encoding it to & works. In getting it later on, the ampersand does not need to be encoded. The error message on put is below.
Error 500: Executing action [update] of controller [com.saffrontech.ws.controller.NamelistsController] caused exception: org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.
Servlet: grails
URI: /ws/grails/namelists/update.dispatch
Exception Message: The entity name must immediately follow the '&' in the entity reference.
Caused by: The entity name must immediately follow the '&' in the entity reference.
Class: NamelistsControllerComments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Jim Fleming on 13 Sep, 2010 04:54 PM
submitted to development
Support Staff 3 Posted by David E. Young on 07 Oct, 2010 02:01 PM
Hey Kyle. Would you please send me an example URI of the REST PUT call you're making that exhibits the problem? In other words, the precise REST URI being sent to the server is what I need. This will make it easier to reproduce exactly what you're doing and pinpoint the problem area. Thanks.
-- david
4 Posted by Kyle Nakamoto on 11 Oct, 2010 10:11 PM
Sorry. It has been so long, I have forgotten the context. I cannot replicate this problem at this time. If Jim recalls this a bit more, maybe I can get the specific URI.
-Kyle
Support Staff 5 Posted by Jim Fleming on 31 Jan, 2011 12:23 AM
Kyle, I don't remember exactly what the issue was but I know we've made a number of namelist improvements over the past months. I will close this for now, but let us know if you see any further issues with namelist.
Thanks,
Jim
Jim Fleming closed this discussion on 31 Jan, 2011 12:23 AM.