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

Locale CSS caching causes malformed layout

    Details

      Description

      CRITICAL NOTE: The key part here is that the first request on the server is for an RTL locale. Hebrew (WI) is an RTL language.

      Reproduction Steps:

      1. In portal.properties set: browser.launcher.url=, to prevent auto launching the browser. THIS IS CRITICAL
      2. Start Portal with fresh database
      3. Open browser in "private mode" to: http://localhost:8080/iw/ THIS IS CRITICAL
      4. Notice Portal is in Hebrew (IW locale)
      5. Change locale to English (EN locale) by changing the URL to: http://localhost:8080/en/
      6. You can even open http://localhost:8080/en/ in another browser. To eliminate the possibility of the browser cache being the issue.

      Expected Result:

      Actual Result:

      More extreme examples can be seen in Control Panel.

      Expected Result:

      Actual Result:

      Reproduction Steps (old):

      1. Start Portal with fresh database
      2. Open browser in "private mode" to http://localhost:8080/
      3. Sign in
      4. Complete new user setup
      5. Open: Product Menu > Content > Web Content > New Basic Web Content
      6. Note: No need to add any content
      7. Add /iw/ to URL. (http://localhost:8080/iw/group/guest/...) to change the language to Hebrew
      8. Click (while in Hebrew): Add Translation > Hebrew
      9. Note: No need to add any content
      10. Stop Server
      11. Start Server
      12. Using the same browser window, go to: http://localhost:8080/
      13. Notice URL updates to: http://localhost:8080/iw/web/guest/home
      14. Change URL to: http://localhost:8080/en/web/guest/home

        Attachments

        1. correct-locale-en-aui.css
          459 kB
        2. correct-locale-inspect-logo-en.PNG
          correct-locale-inspect-logo-en.PNG
          376 kB
        3. correct-locale-login-en.PNG
          correct-locale-login-en.PNG
          349 kB
        4. correct-locale-logout-en.PNG
          correct-locale-logout-en.PNG
          364 kB
        5. mixed-locale-en-aui.css
          429 kB
        6. mixed-locale-inspect-logo-en.PNG
          mixed-locale-inspect-logo-en.PNG
          375 kB
        7. mixed-locale-login-en.PNG
          mixed-locale-login-en.PNG
          202 kB
        8. mixed-locale-login-iw.PNG
          mixed-locale-login-iw.PNG
          191 kB
        9. mixed-locale-logout-en.PNG
          mixed-locale-logout-en.PNG
          373 kB
        10. mixed-locale-logout-iw.PNG
          mixed-locale-logout-iw.PNG
          374 kB
        11. RTL-en.PNG
          RTL-en.PNG
          308 kB

          Issue Links

            Activity

              People

              Assignee:
              hong.zhao Hong Zhao (Inactive)
              Reporter:
              byran.zaugg Byran Zaugg (Inactive)
              Participants of an Issue:
              Recent user:
              Csaba Turcsan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  7.0.0 DXP FP11
                  7.0.0 DXP SP2
                  7.0.3 CE GA4
                  7.1.X
                  Master