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

When persistSettings of RuntimeTag is false, it still saves portletName related portletPreferences data to portletpreferences table

Details

    Description

      Description:
      I will use <liferay-portlet:preview> tag to expose the issue. Because the tag invokes <liferay-portlet:runtime> and persistSettings property is false by default . Using <liferay-portlet:preview> tag, it shouldn't save portletName related portletPreferences data to the database.

      Reproduction Steps:
      1. Place the below code to modules\apps\journal\journal-content-web\src\main\resources\META-INF\resources\view.jsp

      <liferay-portlet:preview
      	portletName="<%= "com_liferay_blogs_web_portlet_BlogsPortlet" %>"
      	showBorders="<%= true %>"
      />
      

      2. Deploy the module journal-content-web.
      3. Create one widget page "page1"
      4. Add Web Content Display portlet to "page1"

      Expected result: no "com_liferay_blogs_web_portlet_BlogsPortlet" entry is created in the portletpreferences table.
      Actual result: an "com_liferay_blogs_web_portlet_BlogsPortlet" entry is created in the portletpreferences.

      Attachments

        Issue Links

          Activity

            People

              kevin.valencia Kevin Valencia
              hai.yu Hai Yu
              Kiyoshi Lee Kiyoshi Lee
              Hai Yu Hai Yu
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                47 weeks, 2 days ago

                Packages

                  Version Package
                  7.4.3.7 CE GA7
                  7.4.13 DXP U3
                  7.4.3.32 CE GA32
                  7.4.3.33 CE GA33
                  Master