You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Sriram Sankararaman (JIRA)" <ji...@apache.org> on 2011/09/26 07:57:26 UTC

[jira] [Created] (WW-3685) ChainingInterceptor not copying fieldErrors

ChainingInterceptor not copying fieldErrors
-------------------------------------------

                 Key: WW-3685
                 URL: https://issues.apache.org/jira/browse/WW-3685
             Project: Struts 2
          Issue Type: Bug
          Components: Core Interceptors
    Affects Versions: 2.2.3
         Environment: All
            Reporter: Sriram Sankararaman


Inside the com.opensymphony.xwork.interceptor.ChainingInterceptor, fieldErrors is not assigned to right variable resulting in always false. The end action is not getting the field errors all the time. this should be fixed. As workaround, i have created an interceptor that copies the fieldError specifically since its missed by ChainingInterceptor.

@Inject(value = "struts.xwork.chaining.copyFieldErrors", required = false)
    public void setCopyFieldErrors(String copyFieldErrors) {
        this.copyErrors = "true".equalsIgnoreCase(copyFieldErrors);
    }

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

        

[jira] [Closed] (WW-3685) ChainingInterceptor not copying fieldErrors

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

Maurizio Cucchiara closed WW-3685.
----------------------------------

    Resolution: Duplicate
      Assignee: Maurizio Cucchiara

Already fixed in trunk 

> ChainingInterceptor not copying fieldErrors
> -------------------------------------------
>
>                 Key: WW-3685
>                 URL: https://issues.apache.org/jira/browse/WW-3685
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors
>    Affects Versions: 2.2.3
>         Environment: All
>            Reporter: Sriram Sankararaman
>            Assignee: Maurizio Cucchiara
>
> Inside the com.opensymphony.xwork.interceptor.ChainingInterceptor, fieldErrors is not assigned to right variable resulting in always false. The end action is not getting the field errors all the time. this should be fixed. As workaround, i have created an interceptor that copies the fieldError specifically since its missed by ChainingInterceptor.
> @Inject(value = "struts.xwork.chaining.copyFieldErrors", required = false)
>     public void setCopyFieldErrors(String copyFieldErrors) {
>         this.copyErrors = "true".equalsIgnoreCase(copyFieldErrors);
>     }

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