You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Christoffer Enqvist (JIRA)" <ji...@apache.org> on 2011/06/23 10:41:47 UTC

[jira] [Created] (WW-3654) Failed validation returns Action.NONE instead of Action.INPUT

Failed validation returns Action.NONE instead of Action.INPUT
-------------------------------------------------------------

                 Key: WW-3654
                 URL: https://issues.apache.org/jira/browse/WW-3654
             Project: Struts 2
          Issue Type: Bug
          Components: Core Interceptors, Plugin - REST
    Affects Versions: 2.2.3
         Environment: Windows 7/Server 2008, Apache Tomcat/5.5.15, Java 1.6
            Reporter: Christoffer Enqvist
            Priority: Critical


After upgrading from 2.2.1.1 to 2.2.3 input validation fails (i.e. invalid input values), and returns Action.NONE instead of Action.INPUT. Log (TRACE-level) doesn't show anything interesting. Completely removing result-definition does not result in "result not defined-error". Downgrading to 2.2.1.1 fixes the problem again.

Action/Controller extends ActionSupport and implements ModelDriven<Object>. Results are defined using annotations. After debugging the Struts2-code it seems as if result is null at line 295 in RestActionInvocation.java.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (WW-3654) Failed validation returns Action.NONE instead of Action.INPUT

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

Lukasz Lenart updated WW-3654:
------------------------------

    Fix Version/s: Future

I need some more details, an example application would be nice ;-)
                
> Failed validation returns Action.NONE instead of Action.INPUT
> -------------------------------------------------------------
>
>                 Key: WW-3654
>                 URL: https://issues.apache.org/jira/browse/WW-3654
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors, Plugin - REST
>    Affects Versions: 2.2.3
>         Environment: Windows 7/Server 2008, Apache Tomcat/5.5.15, Java 1.6
>            Reporter: Christoffer Enqvist
>            Priority: Critical
>              Labels: interceptors, modeldriven, rest, validation
>             Fix For: Future
>
>
> After upgrading from 2.2.1.1 to 2.2.3 input validation fails (i.e. invalid input values), and returns Action.NONE instead of Action.INPUT. Log (TRACE-level) doesn't show anything interesting. Completely removing result-definition does not result in "result not defined-error". Downgrading to 2.2.1.1 fixes the problem again.
> Action/Controller extends ActionSupport and implements ModelDriven<Object>. Results are defined using annotations. After debugging the Struts2-code it seems as if result is null at line 295 in RestActionInvocation.java.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3654) Failed validation returns Action.NONE instead of Action.INPUT

Posted by "Lukasz Lenart (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13162339#comment-13162339 ] 

Lukasz Lenart commented on WW-3654:
-----------------------------------

Could you check against the latest build [1] ?

[1] https://builds.apache.org/view/S-Z/view/Struts/job/Struts2/lastStableBuild/
                
> Failed validation returns Action.NONE instead of Action.INPUT
> -------------------------------------------------------------
>
>                 Key: WW-3654
>                 URL: https://issues.apache.org/jira/browse/WW-3654
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors, Plugin - REST
>    Affects Versions: 2.2.3
>         Environment: Windows 7/Server 2008, Apache Tomcat/5.5.15, Java 1.6
>            Reporter: Christoffer Enqvist
>            Priority: Critical
>              Labels: interceptors, modeldriven, rest, validation
>
> After upgrading from 2.2.1.1 to 2.2.3 input validation fails (i.e. invalid input values), and returns Action.NONE instead of Action.INPUT. Log (TRACE-level) doesn't show anything interesting. Completely removing result-definition does not result in "result not defined-error". Downgrading to 2.2.1.1 fixes the problem again.
> Action/Controller extends ActionSupport and implements ModelDriven<Object>. Results are defined using annotations. After debugging the Struts2-code it seems as if result is null at line 295 in RestActionInvocation.java.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira