Uploaded image for project: 'Forms'
  1. Forms
  2. FORMS-707

Ajax callback handling JSONReader now receive JSON instead of text

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 2.20.6, 2.21.0
    • 2.20.5, 2.21.0
    • None
    • None
    • 4.9.0 M9
    • Oui

      Following RUNTIME-4098, all responses generated by the JSON reader and handled by the Jquery are automatically transform into JSON (if not configured otherwise).

      The server response is preprocess by Jquery before invocking the success handler.
      The preprocessing is based on the dataType configuration and if none is provided, the MIME type. By honoring the application/json MIME, the response generated by the JSONReader are now automatically parse into JSON.

      Previously necessary call to JSON.parse in the success handler now result in a error.

          [FORMS-707] Ajax callback handling JSONReader now receive JSON instead of text

          Guillaume Gouin made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Ready to merge [ 10208 ] New: Resolved [ 5 ]
          Laurence Aumeunier made changes -
          Assignee Original: Laurence Aumeunier [ laurence ] New: Guillaume Gouin [ ggouin ]
          Laurence Aumeunier made changes -
          Status Original: Code review OK [ 10206 ] New: Ready to merge [ 10208 ]
          Laurence Aumeunier made changes -
          Status Original: Available for review [ 10005 ] New: Code review OK [ 10206 ]
          Guillaume Gouin made changes -
          Assignee New: Laurence Aumeunier [ laurence ]
          Guillaume Gouin made changes -
          Status Original: In Progress [ 3 ] New: Available for review [ 10005 ]
          Guillaume Gouin made changes -
          Assignee Original: Guillaume Gouin [ ggouin ]
          Laurence Aumeunier made changes -
          Status Original: Available for review [ 10005 ] New: In Progress [ 3 ]
          Guillaume Gouin made changes -
          Status Original: In Progress [ 3 ] New: Available for review [ 10005 ]
          Guillaume Gouin made changes -
          Revue fonctionnelle renseignée New: Oui [ 10610 ]

            ggouin Guillaume Gouin
            ggouin Guillaume Gouin
            Guillaume Gouin Guillaume Gouin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: