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

Portlet Property preferences-company-wide is not being respected for embedded portlets.

    Details

      Description

      Description:

       

      Utilizing the portlet property for embedded portlets: 

      "com.liferay.portlet.preferences-company-wide=true"

      does not work as the database always stores the portlet preferences at the layout level rather than the company level.

       

      Steps:

      1. Start Liferay.

      2. Deploy attached youtube.jar.

      3. Deploy attached classic-theme.war.

      4. Confirm you have an embedded youtube portlet.

      5. Go to Configuration->Setup->Change "Watch this video at Youtube.com" to YES

      6. Query your database with the following:

       

      SELECT * FROM SCHEMA_NAME.PortletPreferences
      WHERE portletId like "com_liferay_youtube_web_portlet_YouTubePortlet";
      

       

      Expected Result:

      The entry with ownerType = 1 and plid = 0 for com_liferay_youtube_web_portlet_YoutubePortlet would have its preferences column value updated.

       

      Actual Result:

      The entry with ownerType = 3 and plid = 0 for com_liferay_youtube_web_portlet_YoutubePortlet would have its preferences column value updated.

       

      Reproduced in:

      Master: 579a116b541592fecec36dcbb8fbff4ba2b96e0d

      7.1.x: 146a39ac32ac0675aac51b8f96c31493f365ce63

        Attachments

          Activity

            People

            Assignee:
            lu.liu Lu Liu
            Reporter:
            il.kim Brian I. Kim
            Participants of an Issue:
            Recent user:
            Jason Pince
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 6 weeks, 6 days ago

                Packages

                Version Package
                7.1.10 DXP FP14
                7.1.X
                7.2.10 DXP FP2
                7.2.10.1 DXP SP1
                7.2.X
                7.2.1 CE GA2
                7.3.10 DXP GA1
                Master