Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-911

Validation of method params is not internationalized

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.0.6.Final
    • 3.0.2.Final
    • None
    • None

      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.

              rsigal@redhat.com Ronald Sigal
              juergen.zimmermann Juergen Zimmermann (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: