glassfish
  1. glassfish
  2. GLASSFISH-18537

Validation Message Bundles don't get resolved in correct language

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.2_dev
    • Fix Version/s: 3.1.2_dev
    • Component/s: bean-validator
    • Labels:
      None
    • Environment:

      Description

      Using Bean Validation constraints like the following including providing a message property
      @NotNull(message = "

      {Album.name.notNull}

      ")

      and having the default ValidationMessages.properties
      packaged with only one language specific version (e.g. ValidationMessages_de.properties) leads to wrong locale being used for clients which use other than the language specific locale.

      Example attached:
      visit with a en/en_US browser setting
      http://localhost:8080/constraints/
      <= create album leads to a German message to be displayed.

        Activity

        myfear created issue -
        shreedhar_ganapathy made changes -
        Field Original Value New Value
        Assignee shreedhar_ganapathy [ shreedhar_ganapathy ] jjsnyder83 [ jjsnyder83 ]
        jjsnyder83 made changes -
        Assignee jjsnyder83 [ jjsnyder83 ] mtaube [ mtaube ]
        mtaube made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 3.1.2_b05 [ 15105 ]
        Resolution Fixed [ 1 ]
        Joe Di Pol made changes -
        Affects Version/s 3.1.2_dev [ 17782 ]
        Joe Di Pol made changes -
        Fix Version/s 3.1.2_dev [ 17782 ]

          People

          • Assignee:
            mtaube
            Reporter:
            myfear
          • Votes:
            2 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: