REST Namelists: Assymetric get/put calls.

Kyle Nakamoto's Avatar

Kyle Nakamoto

30 Aug, 2010 05:11 PM via web

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: NamelistsController
  1. Support Staff 2 Posted by Jim Fleming on 13 Sep, 2010 04:54 PM

    Jim Fleming's Avatar

    submitted to development

  2. Support Staff 3 Posted by David E. Young on 07 Oct, 2010 02:01 PM

    David E. Young's Avatar

    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

  3. 4 Posted by Kyle Nakamoto on 11 Oct, 2010 10:11 PM

    Kyle Nakamoto's Avatar

    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

  4. Support Staff 5 Posted by Jim Fleming on 31 Jan, 2011 12:23 AM

    Jim Fleming's Avatar

    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

  5. Jim Fleming closed this discussion on 31 Jan, 2011 12:23 AM.

Comments are currently closed for this discussion. You can start a new one.