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

Portlet permissions language bundle doesn't work correctly with multiple portlets

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 6.1.1 CE GA2
    • Fix Version/s: 6.1.1 CE GA2
    • Labels:
      None
    • Environment:
      Windows Server 2008 R2, Liferay 6.1.1 CE GA2 Tomcat bundle, JDK 7, SQL server 2008 R2

      Description

      Scenario: 2 portlets (portlet-a and portlet-b) with permissions. Portlet A has permissions ACTION_A, ACTION_B and ACTION_C. Portlet B has permissions ACTION_D, ACTION_E and ACTION_F. These permissions are translated using the WEB-INF\classes\content\Language.properties.

      • I deploy Portlet A only. Everything works as expected as seen in scenario1.png.
      • I deploy Portlet A and B. The permissions for Portlet A are not translated anymore as seen in scenario2.png.
      • I add the content of Language.properties from Portlet A in the Language.properties of Portlet B and now the permissions of Portlet A are translated as seen in scenario3.png

      It seems the Language.properties of the last portlet (A-Z) are used for translation. I added the 2 test portlets (portlets.zip).

        Attachments

        1. liferay-hook.xml
          0.2 kB
        2. portlet-a.war
          3.32 MB
        3. portletA-portlet-6.1.20.1-fixed.war
          20 kB
        4. portlet-b.war
          3.32 MB
        5. portletB-portlet-6.1.20.1-fixed.war
          21 kB
        6. portlets.zip
          53 kB
        7. scenario1.png
          scenario1.png
          39 kB
        8. scenario2.png
          scenario2.png
          42 kB
        9. scenario3.png
          scenario3.png
          39 kB

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

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

                Packages

                Version Package
                6.1.1 CE GA2