[ https://issues.apache.org/jira/browse/WW-3699?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13146849#comment-13146849
]
bruce.yu edited comment on WW-3699 at 11/9/11 8:41 AM:
-------------------------------------------------------
My English too poor, sorry.
condition:
1. both two actions'name are the same('index'), though they in different namespace.
2. struts.devMode=false
work flow:
1. get http://localhost:8080/test-struts2/ex1.jsp, press submit;
2. get http://localhost:8080/test-struts2/ex2.jsp, press submit
you will see the validation of /ex1/index.action. it's wrong.
reason:
VisitorFieldValidator call actionValidatorManager.validate method,
but AnnotationActionValidatorManager.buildValidatorKey(Class) only take action's name, not
with namespace.
was (Author: zhi4chi2):
condition:
1. both two actions'name are the same('index'), though they in different namespace.
2. struts.devMode=false
work flow:
1. get http://localhost:8080/test-struts2/ex1.jsp, press submit;
2. get http://localhost:8080/test-struts2/ex2.jsp, press submit
you will see the validation of /ex1/index.action. it's wrong.
reason:
VisitorFieldValidator call actionValidatorManager.validate method,
but AnnotationActionValidatorManager.buildValidatorKey(Class) only take action's name, not
with namespace.
> VisitorFieldValidator & AnnotationActionValidatorManager.buildValidatorKey
> --------------------------------------------------------------------------
>
> Key: WW-3699
> URL: https://issues.apache.org/jira/browse/WW-3699
> Project: Struts 2
> Issue Type: Bug
> Components: XML Validators
> Affects Versions: 2.2.3.1
> Reporter: bruce.yu
> Attachments: test-struts2.zip
>
>
--
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
|