You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Markus Fischer (JIRA)" <ji...@apache.org> on 2017/06/28 06:44:00 UTC
[jira] [Updated] (WW-4810) Calling empty locale
[ https://issues.apache.org/jira/browse/WW-4810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Markus Fischer updated WW-4810:
-------------------------------
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 null, and as language ""
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.
was:
< 2.5.11 calling empty locale "?request_local=" results in locale en
In 2.5.11 calling empty locale "?request_local=" results in locale
object (not null) with property languageTag null, and as language ""
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.
> Calling empty locale
> --------------------
>
> Key: WW-4810
> URL: https://issues.apache.org/jira/browse/WW-4810
> Project: Struts 2
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.5.11
> Reporter: Markus Fischer
> Priority: Minor
> Fix For: 2.5.11
>
>
> < 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 null, and as language ""
> 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.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)