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_b22
    • Fix Version/s: 3.1.2_b05
    • 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 -
        Hide
        Aquillo added a comment -

        What is the status regarding this issue?
        I would love to see this being fixed.

        Show
        Aquillo added a comment - What is the status regarding this issue? I would love to see this being fixed.
        Hide
        shreedhar_ganapathy added a comment -

        -> JSnyder

        Show
        shreedhar_ganapathy added a comment - -> JSnyder
        shreedhar_ganapathy made changes -
        Field Original Value New Value
        Assignee shreedhar_ganapathy [ shreedhar_ganapathy ] jjsnyder83 [ jjsnyder83 ]
        jjsnyder83 made changes -
        Assignee jjsnyder83 [ jjsnyder83 ] mtaube [ mtaube ]
        Hide
        mtaube added a comment - - edited

        This does not appear to reproduce for me using GlassFish 3.1.2.2 (build 5)

        Show
        mtaube added a comment - - edited This does not appear to reproduce for me using GlassFish 3.1.2.2 (build 5)
        mtaube made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 3.1.2_b05 [ 15105 ]
        Resolution Fixed [ 1 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: