Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4810

Calling empty locale

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.5.10
    • 2.5.12
    • Core
    • None

    Description

      < 2.5.11 calling empty locale ?request_locale= results in locale en

      In 2.5.11 calling empty locale ?request_locale= results in locale object (not null) with property languageTag set to null and as language == empty

      NB: it is also interesting to see the different behaviours for

      wget --header="Accept-Language: fff" --no-check-certificate https://localhost:8443/myProject/path
      
      "Accept-Language: ff" => Fula language
      "Accept-Language: fff" => empty locale
      "Accept-Language: ffff" => exception thrown
      

      This seems to be the standard behaviour of Locale though.

      Attachments

        Activity

          People

            lukaszlenart Lukasz Lenart
            flyingfischer Markus Fischer
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: