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

              Assignee:
              dante.wang Dante Wang
              Reporter:
              hai.yu Hai Yu
              Participants of an Issue:
              Recent user:
              Clarissa Velazquez
              Engineering Assignee:
              Hai Yu
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                21 weeks ago

                  Packages

                  Version Package
                  7.4.3.7 CE GA7
                  7.4.13 DXP U3
                  Master