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

The GUEST_LANGUAGE_ID cookie was overridden when access from the site virtual host

Details

    Description

      Hi team,

      Our customer found an issue that the GUEST_LANGUAGE_ID cookie was overridden when accessing from the site virtual host.

      Steps to reproduce:

      1. Create a new site called (Site A)
      2. Enable only English language (en-US)
      3. Add a virtual host under Public Pages in Site A with the default language. (Ex: site-a.local)
      4. Create a new public page in Site A called (Home) and publish
      5. Create a new site called (Site B)
      6. Enable only French (fr-FR)
      7. Create a new public page in Site B called (Home) and publish
      8. Access Site B using the virtual host from Site A. (Ex: http://site-a.local.local/web/site-b)
      9. On Browser open the development tool and inspect GUEST_LANGUAGE_ID

      Expected result: The GUEST_LANGUAGE_ID should be fr-FR

      Actual result: The GUEST_LANGUAGE_ID was changed to en-US (Site A language)

      Reproduced in Master: 22411abd9875742b0d5eeb0c54ea8f94c0741166

      Reproduced in 7.3X: b0743fba0e99ebc4a4c8265b5ae5d430da376b5b

      Note: It works correctly if accessing from the virtual instance host e.g. http://localhost/web/site-b

      Attachments

        Activity

          People

            support-lep@liferay.com SE Support
            loc.pham Loc Pham
            Kiyoshi Lee Kiyoshi Lee
            Loc Pham Loc Pham
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              5 weeks, 2 days ago

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 days
                3d

                Packages

                  Version Package