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

Validation of method params is not internationalized

    XMLWordPrintable

Details

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

    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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: