-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.1.X, 7.2.X, Master
-
Fix Version/s: 7.2.10 DXP FP6, 7.2.X, 7.3.3 CE GA4, 7.3.10 DXP GA1, Master
-
Component/s: Core Infrastructure
-
Labels:
-
Branch Version/s:7.2.x
-
Backported to Branch:Committed
-
Fix Priority:3
-
Git Pull Request:
Issue
Clicking on the Sign In link on the instance virtual host is causing a 404 error when site virtual host is also set.
Steps to Reproduce
- Set the following 2 addresses to your /etc/hosts file
127.0.0.1 test.au 127.0.0.1 www.test.au
- Start a clean 7.2 dxp-5 instance
- Login as test@liferay.com
- Agree to terms and set the password reminder
- Go to [Control Panel > Configuration > Virtual Instances]
- Edit the existing liferay.com virtual instance and save
virtual host: test.au mail: test.au
- Access http://test.au:8080/
- Click on Sign In link - Assert that the sign in portlet loads successfully
- Login as test@liferay.com
- Go to [Site > Configuration > Site Settings > Site URL]
- In "Public Pages", set the host to "www.test.au" and save
- Sign out
- Access http://www.test.au:8080/
- Click on Sign In link - Assert that the sign in portlet loads successfully
- Close the popup
- Access http://test.au:8080/
- Click on "Sign In" link
Actual Behavior
Sign in portlet is blank, and page is automatically reloaded. 404 errors displayed in liferay log:
WARN [http-nio-8080-exec-8][code_jsp:160] {code="404", msg="/home", uri=/home}
Expected Behavior
Sign in portlet is displayed in the modal window without any issues.
Research
If you set virtual.hosts.default.site.name= (i.e., blank) this allows the modal to load up on both www.test.au and test.au. It appears that it's trying to apply "Guest" site based on the default portal property.
Was working in
DXP 7.2 + DXP-4
Reproduced in
DXP 7.2 + DXP-5
7.2.X Commit: 4c01bfb740257b1670922469fa95829deef2a79b
Master Commit: a68c7f142a4ad405dc1e5b9c62e3905777c556f5