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

Malformed JSON Response on Exception

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.3.1.RELEASE
    • Fix Version/s: None
    • Component/s: WEB MVC
    • Labels:

      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

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

              Dates

              • Created:
                Updated: