[
https://jira.jboss.org/browse/GTNPORTAL-1355?page=com.atlassian.jira.plug...
]
Marko Strukelj commented on GTNPORTAL-1355:
-------------------------------------------
What happens here is that Auth failed redirect goes directly to login/jsp/login.jsp of the
portal (via unbridged request out of any portal page context). It uses request.getLocale()
to localize a ResourceBundle, but that value simply reflects user's browser language
preference, while the rest of the portal employs a more complex logic to determine what
locale is used for the request. This mismatch is the cause of the localization switch that
can occur. This part - how the portal determines locale to be used for current request -
is related to GTNPORTAL-1306, and is being worked on at the moment as well.
Currently the idea to address the issue is to install LocalizationFilter that will wrap
HttpServletRequest and override getLocale() / getLocales() to return values that are in
sync with the rest of the portal. This would then be a universal solution for all
extra-portal-page resources that are served via non-portal-page URLs, and are outside
regular portal page processing pipeline.
Locale is not set correctly in login form when login failed
-----------------------------------------------------------
Key: GTNPORTAL-1355
URL:
https://jira.jboss.org/browse/GTNPORTAL-1355
Project: GateIn Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 3.0.0-GA
Reporter: Gary Hu
Assignee: Marko Strukelj
There are two scenarios to demonstrate the issue.
1. default locale and default OS LANG are both "en_US". If change the language
to a different one other the default, and when login fails it shows the label text in
English not the one selected previously. This happens to both Firefox and IE8 browsers.
To reproduce the issue:
1) open portal
http://localhost:8080/portal
2) click the link "Change Language" at the top right corner, and change it
to German
3) click "Anmeoden"(Sign in) and the login popup appears
4) fill in information not correct so the login fails and then be redirected to a
different login page with the label showing English not in German.
2. default locale and default OS LANG are both "de_DE". If login fails it shows
the label text in German as expected in IE8 but in English in Firefox.
1) open portal
http://localhost:8080/portal
2) click "Anmeoden"(Sign in) and the login popup appears
3) fill in information not correct so the login fails and then be redirected to a
different login page. If the browser is IE8, the label text shows German as expected. If
the browser is Firefox the label
text shows in English.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira