struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas Bohorquez Gutierrez (JIRA)" <j...@apache.org>
Subject [jira] Created: (WW-3434) JSONValidationInterceptor thows exception used with OValValidationInterceptor
Date Thu, 08 Apr 2010 18:21:36 GMT
JSONValidationInterceptor thows exception used with OValValidationInterceptor
-----------------------------------------------------------------------------

                 Key: WW-3434
                 URL: https://issues.apache.org/jira/browse/WW-3434
             Project: Struts 2
          Issue Type: Bug
          Components: Plugin - JSON
    Affects Versions: 2.1.8.1
         Environment: struts-json-plugin 2.1.8.1
            Reporter: Nicolas Bohorquez Gutierrez


in the method protected String buildResponse(ValidationAware validationAware) of org.apache.struts2.interceptor.validation.JSONValidationInterceptor
line 149 the work around described in https://issues.apache.org/jira/browse/WW-2721 tries
to remove "model." from fieldError.key. But when using OValValidationInterceptor the fieldError.key
doesn't contains the substring "model." so, the code should be sometring like:

sb.append(validationAware instanceof ModelDriven ? fieldError.getKey(). replaceFirst("model\\.",
"")
                            : fieldError.getKey());

thank you

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


Mime
View raw message