You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Blake Pettersson (JIRA)" <ji...@apache.org> on 2008/02/20 15:32:40 UTC

[jira] Created: (WW-2500) JSONValidationInterceptor: IE chokes when evaling JSON string

JSONValidationInterceptor: IE chokes when evaling JSON string
-------------------------------------------------------------

                 Key: WW-2500
                 URL: https://issues.apache.org/struts/browse/WW-2500
             Project: Struts 2
          Issue Type: Bug
          Components: Core Interceptors
    Affects Versions: 2.1.0
         Environment: Internet Explorer
            Reporter: Blake Pettersson
            Priority: Minor


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".

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WW-2500) JSONValidationInterceptor: IE chokes when evaling JSON string

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2500?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Musachy Barroso resolved WW-2500.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.1

The comma will be there only when there are field errors

> JSONValidationInterceptor: IE chokes when evaling JSON string
> -------------------------------------------------------------
>
>                 Key: WW-2500
>                 URL: https://issues.apache.org/struts/browse/WW-2500
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors
>    Affects Versions: 2.1.0
>         Environment: Internet Explorer
>            Reporter: Blake Pettersson
>            Priority: Minor
>             Fix For: 2.1.1
>
>
> 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".

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.