Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-114577

When accessing Liferay through the instance virtual host after setting a page virtual host, clicking on the Sign In link on the instance virtual host is causing a 404 error

    Details

      Description

      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

      1. Set the following 2 addresses to your /etc/hosts file
        127.0.0.1 test.au
        127.0.0.1 www.test.au
        
      1. Start a clean 7.2 dxp-5 instance
      2. Login as test@liferay.com
      3. Agree to terms and set the password reminder
      4. Go to [Control Panel > Configuration > Virtual Instances]
      5. Edit the existing liferay.com virtual instance and save
        virtual host: test.au
        mail: test.au
        
      1. Access http://test.au:8080/
      2. Click on Sign In link - Assert that the sign in portlet loads successfully
      3. Login as test@liferay.com
      4. Go to [Site > Configuration > Site Settings > Site URL]
      5. In "Public Pages", set the host to "www.test.au" and save
      6. Sign out
      7. Access http://www.test.au:8080/
      8. Click on Sign In link - Assert that the sign in portlet loads successfully
      9. Close the popup
      10. Access http://test.au:8080/
      11. 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
       
       

        Attachments

          Activity

            People

            Assignee:
            della.wang Della Wang
            Reporter:
            to.trinh To To Trinh
            Participants of an Issue:
            Recent user:
            Jason Pince
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              33 weeks ago

                Packages

                Version Package
                7.2.10 DXP FP6
                7.2.X
                7.3.3 CE GA4
                7.3.10 DXP GA1
                Master