]
Trong Tran resolved GTNPORTAL-1407.
-----------------------------------
Fix Version/s: 3.2.0-GA
Resolution: Done
For persistence of cookie, it has been done by GTNPORTAL-1355.
For having a unique url for each language/page. We will create a new controller to allow
that but maybe not by default.
Language doesn't persist when session timeout
---------------------------------------------
Key: GTNPORTAL-1407
URL:
https://jira.jboss.org/browse/GTNPORTAL-1407
Project: GateIn Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Internationalization and Localization
Affects Versions: 3.1.0-GA
Environment: all
Reporter: Benjamin Paillereau
Priority: Critical
Fix For: 3.2.0-GA
There is a critical issue in GateIn about i18n. In public mode, the current portal
language user choice is stored in the session. If the user waits the session timeout then
we lose the language and go back to the default one.
If you take WCM for example, for performance reasons, we reduce automatically the session
MaxInactiveInterval to 60sec.
So, if you change the language in public mode, you lose it after 60 sec if you don't
refresh your page.
We can see a workaround and a longterm solution.
Workaround : use a cookie and store the language in a cookie. When we load the page, if
the current language is different than the one in the cookie, we will prefer the cookie.
Longterm solution : we must have a unique url for each language/page.
http://mysite.com/portal/public/website/mypage => default language
http://mysite.com/portal/fr/public/website/mypage => fr language
or
http://mysite.com/portal/fr/website/mypage => fr language
URL format is still to be determined but the point is to have a unique url. The best
solution should be to be able to choose the url format in the UI when creating a website.
Using unique urls also allows to use a web cache (like varnish), which is not possible
now.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: