-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.0.X, Master
-
Fix Version/s: 7.0.0 DXP FP40, 7.0.0 DXP SP7, 7.0.5 CE GA6, 7.0.X, 7.1.0 M1, 7.1.X, Master
-
Component/s: Portal Services, Portal Services > Localization
-
Branch Version/s:7.0.x
-
Backported to Branch:Committed
-
Story Points:4
-
Fix Priority:2
-
Git Pull Request:
Behaviour description:
portal-ext.properties: locale.prepend.friendly.url.style=2
Preparation:
- Ensure default language of Portal is "English (United States)"
- Login as User "test"
- Create new page "login"
- Put "Sign in" Portlet onto this page
- Go to Account Settings of Test-User
- Change Language to: "Deutsch (Deutschland)"
Preparation for auto-login:
- Put file "com.liferay.portal.security.auto.login.basic.auth.header.module.configuration.BasicAuthHeaderAutoLoginConfiguration.cfg" with content "enabled=true" to osgi/configs.
- Set authentication type to Screen Name
- Route your browser through debugging proxy "Burp Suite" to inject basic auth header.
- Configure basic auth header inside burp:
- Go to Proxy > Options > Match and Replace, press "Add"
- Type: Request Header
Match: [leave empty to add a new request header]
Replace: Authorization: Basic dGVzdDp0ZXN0 - Press "Ok"
Test case 1:
- Open Incognito-Session
- Go to /login page
- Portal redirects to /en/login (test-user is logged in) -
this is invalid
Test case 2 - which nearer to our production scenario needs a new page "restricted" which has no VIEW permission for Guest.
- Open Incognito-Session
- Go to /restricted page
- Portal redirects to /en/restricted (test-user is logged in) -
this is invalid
According to my analysis at production, the redirect to "en/restricted" is done in the first place - before the login is done.
Our clear expectation is, that the portal delivers the german page according to the language preferences of the user.