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.

Reply via email to