[
https://issues.jboss.org/browse/WFLY-1722?page=com.atlassian.jira.plugin....
]
Juergen Zimmermann updated WFLY-1722:
-------------------------------------
Description:
When a method of a JAX-RS resource class is invoked due to e.g. a GET or a POST request,
then the method's parameters are validated via bean validation.
However, the language of violation messages is always the default Locale, and not
calculated using the header parameter accept-language, e.g. accept-language=de.
http://beanvalidation.org/1.1/spec contains an example for a class
LocaleSpecificMessageInterpolator so that validation happens with a dedicated locale.
Validation of method params is not internationalized
----------------------------------------------------
Key: WFLY-1722
URL:
https://issues.jboss.org/browse/WFLY-1722
Project: WildFly
Issue Type: Bug
Components: REST
Affects Versions: 8.0.0.Alpha3
Reporter: Juergen Zimmermann
Assignee: Stuart Douglas
When a method of a JAX-RS resource class is invoked due to e.g. a GET or a POST request,
then the method's parameters are validated via bean validation.
However, the language of violation messages is always the default Locale, and not
calculated using the header parameter accept-language, e.g. accept-language=de.
http://beanvalidation.org/1.1/spec contains an example for a class
LocaleSpecificMessageInterpolator so that validation happens with a dedicated locale.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira