Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-2500

JSONValidationInterceptor: IE chokes when evaling JSON string

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.0
    • 2.1.1
    • Core Interceptors
    • None
    • Internet Explorer

    Description

      This edge case happens when an action has actionErrors, and doesn't have any fieldErrors. The reason IE chokes in the first place is because there is a trailing comma when the json string is built. Since there is nothing after the comma in this case, IE throws an exception; "SyntaxError: Expected identifier, string or number".

      Attachments

        Activity

          People

            Unassigned Unassigned
            blake.pettersson Blake Pettersson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: