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

A deployed hook can show a translation from a language that is not enabled

    Details

      Description

      Steps to reproduce:

      1. Start up the portal on a fresh database
      2. Shut down the server and then add these two properties to the portal-ext.properites
        locales=nl_NL,en_GB
        locales.enabled=nl_NL,en_GB
        
      3. Deploy the attached hook
      4. Before logging in, go to a page with the sign in portlet and add "/nl" after the domain name in the URL to view the page in the "nl" translation. Notice the sign in button says "nl Sign In"
      5. Change the URL to "/en"

      Expected Result:
      The sign in button should say "en Sign In"

      Actual Result:
      The sign in button says "el Sign In"

      Reproduced on ee-6.2.x - e30d970
      Not reproduced in master - i think LPS-50227 is the reason for that

        Attachments

        1. fixed59715.PNG
          fixed59715.PNG
          21 kB
        2. languagebug-hook.war
          3 kB
        3. reproduced59715.PNG
          reproduced59715.PNG
          21 kB

          Issue Links

            Activity

              People

              • Assignee:
                ian.song Ian Song (Inactive)
                Reporter:
                bryan.engler Bryan Engler
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 4 weeks ago

                  Packages

                  Version Package
                  6.2.X EE