[jboss-jira] [JBoss JIRA] (WFLY-1722) Validation of method params is not internationalized
Juergen Zimmermann (JIRA)
jira-events at lists.jboss.org
Fri Jul 19 08:17:26 EDT 2013
[ https://issues.jboss.org/browse/WFLY-1722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
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
More information about the jboss-jira
mailing list