Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-3591

Malformed JSON Response on Exception

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.3.1.RELEASE
    • None
    • WEB MVC

    Description

      It seems the JSON generated for the response due to an Exception in controller's aspects is malformed.
      The closeTry() method in WebJsonMetadata.java append the current line :

      {\\\"ERROR\\\":\"+e.getMessage()+\"\\\"}

      This generate this sort of response :

      {"ERROR":MY_EXCEPTION_MESSAGE"}

      The line should be

      {\\\"ERROR\\\":\\\"\"+e.getMessage()+\"\\\"}

      Attachments

        Activity

          People

            eruiz Enrique Ruiz (DiSiD)
            gpagniez Geoffrey Pagniez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: