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

Returning wrong layout for signed-in user with virtual hosts configured

    Details

      Description

      Steps to reproduce:

      1. Configure hosts file to contain the following:
        127.0.0.1 a.com
        127.0.0.1 b.com
      2. Set the following portal-ext.properties to disable user pages/layouts:
        ##
        ## Layouts
        ##
        
            #
            # Set the default layout template id used when creating layouts.
            #
            layout.default.template.id=2_columns_iii
        
            #
            # Set whether or not private layouts are enabled. Set whether or not private
            # layouts should be auto created if a user has no private layouts. If
            # private layouts are not enabled, then the property
            # "layout.user.private.layouts.auto.create" is assumed to be false.
            #
            layout.user.private.layouts.enabled=false
            layout.user.private.layouts.auto.create=false
        
            #
            # Set this to true if users must have the Power User role to have private
            # pages.
            #
            layout.user.private.layouts.power.user.required=true
        
            #
            # Set whether or not public layouts are enabled. Set whether or not public
            # layouts should be auto created if a user has no public layouts. If public
            # layouts are not enabled, then the property
            # "layout.user.public.layouts.auto.create" is assumed to be false.
            #
            layout.user.public.layouts.enabled=false
            layout.user.public.layouts.auto.create=false
        
            #
            # Set this to true if users must have the Power User role to have public
            # pages.
            #
            layout.user.public.layouts.power.user.required=true
      3. Login as test@liferay.com
      4. Go to Control Panel > Configuration > Portal Settings > General > Virtual Host, set the Virtual Host to: a.com
      5. Go to Control Panel > Configuration > Portal Settings > Authentication, enable "Require strangers to verify their email address?"
      6. Go to Liferay > Site Administration > Pages > Site Pages > Public Pages > Look and Feel > Color Schemes, change it to: Dark.
      7. Create a new blank site called siteB
      8. Go to siteB > Site Administration > Configuration > Site Settings > Site URL > Virtual Hosts, set the public pages virtual host to: b.com
      9. Go to siteB > Site Administration > Pages > Site Pages > Public Pages, add a Public Page and maintain the Light theme.
      10. Setup a valid mail server.
      11. At this point, confirm the following:
        http://a.com:8080 will have the dark theme.
        http://b.com:8080 will have the light theme.
      12. Sign out, then create a new account with a valid email address (Default Liferay Home Page > Sign In portlet > Create Account).
      13. You should receive an email. Grab the password and verification code. Sign into http://b.com:8080 with those credentials.
      14. Go to My Account and change the user's email to another valid email address. Keep this browser window open.
      15. You will receive another email. Open the verification link in the same browser as the previous step. The link should look similar to this: http://b.com:8080/c/portal/verify_email_address?ticketKey=5edb2045-acac-4653-ba30-087d65edaab6
      16. Notice, the verification page displays the dark theme. It should display the light theme!

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              linda.sui Linda Sui
              Reporter:
              kenneth.chang Kenneth Chang (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 28 weeks, 6 days ago

                  Packages

                  Version Package
                  6.2.2 CE GA3
                  6.2.X EE
                  7.0.0 M2