掲示板
Fail Home redirect after login when it doesn't have Guest View permissions
6年前 に Federico Hernandez によって更新されました。
Fail Home redirect after login when it doesn't have Guest View permissions
New Member 投稿: 6 参加年月日: 12/09/11 最新の投稿
Since Liferay 6.1 CE and previous versions we have a Liferay Community where Home doesn't have Guest View permissions.
When User enter URL's like:
User will be redirected to Login page and after he write email and password correctly, he will be redirected to Home. It's great!.
Last week we upgrade our production environment to Liferay 6.2 CE GA6 and the previous behaviour doesn't work well. Now browser stay at next URL after User write email and password correctly:
The browser URL at Login page, before write email and password its like:
Checking localhost_access_log.txt file I found:
As you could see redirect at login URL was changed from
or
to
Does anyone knows how to fix it?
When User enter URL's like:
http://communityxyz.fhernand.com:8080/
http://communityxyz.fhernand.com:8080/home
User will be redirected to Login page and after he write email and password correctly, he will be redirected to Home. It's great!.
Last week we upgrade our production environment to Liferay 6.2 CE GA6 and the previous behaviour doesn't work well. Now browser stay at next URL after User write email and password correctly:
http://communityxyz.fhernand.com:8080/c/portal/extend_session
The browser URL at Login page, before write email and password its like:
http://communityxyz.fhernand.com:8080/login?p_p_id=58&p_p_lifecycle=0&_58_redirect=%2F
http://communityxyz.fhernand.com:8080/login?p_p_id=58&p_p_lifecycle=0&_58_redirect=%2Fhome
Checking localhost_access_log.txt file I found:
127.0.0.1 - - [26/Aug/2017:12:24:34 -0500] "POST /login?p_p_id=10_WAR_spribo&p_p_lifecycle=2&p_p_state=normal&p_p_mode=view&p_p_resource_id=APP&p_p_cacheability=cacheLevelPage&p_p_col_id=column-4&p_p_col_pos=1&p_p_col_count=2&_10_WAR_spribo_v-resourcePath=%2FUIDL%2F&v-uiId=0 HTTP/1.1" 200 131
127.0.0.1 - - [26/Aug/2017:12:24:34 -0500] "POST /c/portal/extend_session HTTP/1.1" 302 -
127.0.0.1 - - [26/Aug/2017:12:24:34 -0500] "GET /c/portal/login?redirect=%2Fc%2Fportal%2Fextend_session HTTP/1.1" 302 -
127.0.0.1 - - [26/Aug/2017:12:24:34 -0500] "GET /login?p_p_id=58&p_p_lifecycle=0&_58_redirect=%2Fc%2Fportal%2Fextend_session HTTP/1.1" 200 8054
127.0.0.1 - - [26/Aug/2017:12:24:34 -0500] "POST /login?p_p_id=10_WAR_spribo&p_p_lifecycle=2&p_p_state=normal&p_p_mode=view&p_p_resource_id=APP&p_p_cacheability=cacheLevelPage&p_p_col_id=column-4&p_p_col_pos=1&p_p_col_count=2&_10_WAR_spribo_v-resourcePath=%2FUIDL%2F&v-uiId=0 HTTP/1.1" 200 383
127.0.0.1 - - [26/Aug/2017:12:24:34 -0500] "POST /c/portal/extend_session HTTP/1.1" 302 -
127.0.0.1 - - [26/Aug/2017:12:24:34 -0500] "GET /c/portal/login?redirect=%2Fc%2Fportal%2Fextend_session HTTP/1.1" 302 -
127.0.0.1 - - [26/Aug/2017:12:24:34 -0500] "GET /login?v-wn=v-19_WAR_spribo_LAYOUT_1022583-0.4050294403246135&v-appId=v-10_WAR_spribo_LAYOUT_883929&p_p_id=10_WAR_spribo&p_p_lifecycle=1&p_p_state=maximized&p_p_mode=view HTTP/1.1" 302 -
127.0.0.1 - - [26/Aug/2017:12:24:34 -0500] "GET /web/guest/home?p_p_id=58&p_p_lifecycle=1&p_p_state=normal&p_p_mode=view&saveLastPath=0&_58_struts_action=%2Flogin%2Flogin&rememberMe=true&timeZoneOffset=-18000000 HTTP/1.1" 302 -
127.0.0.1 - - [26/Aug/2017:12:24:34 -0500] "GET /c/portal/extend_session HTTP/1.1" 200 35
127.0.0.1 - - [26/Aug/2017:12:24:34 -0500] "GET /login?p_p_id=58&p_p_lifecycle=0&_58_redirect=%2Fc%2Fportal%2Fextend_session HTTP/1.1" 200 8055
As you could see redirect at login URL was changed from
_58_redirect=%2F
or
_58_redirect=%2Fhome
to
redirect=%2Fc%2Fportal%2Fextend_session
Does anyone knows how to fix it?