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

portlet preferences are not removed from the portalpreferences table when deleting a customizable page

    Details

      Description

      portlet preferences are not removed from the portalpreferences table when deleting a customizable page

      Reproduction steps:

      1. Create a site
      2. Create a customizable page (both columns should be customizable)
      3. On the default view of the page - add a portlet to both columns (I used the Web Content Display portlet)
      4. Create a user
      5. Add the user to the created site
      6. Log in with the user and go to the page (the customizable version of the page) - you will see that there's an entry like the below one in the portalpreferences table:
        <?xml version="1.0" encoding="UTF-8"?>
        <portlet-preferences>
           <preference>
              <name>com.liferay.portal.model.CustomizedPages20458#modifiedDate</name>
              <value>20190423113444</value>
           </preference>
           <preference>
              <name>com.liferay.portal.model.CustomizedPages20458#column-2</name>
              <value>56_USER_20477_INSTANCE_ETMlaVC88ZOT</value>
           </preference>
           <preference>
              <name>com.liferay.portal.model.CustomizedPages20458#column-1</name>
              <value>56_USER_20477_INSTANCE_noZc0xtuOLpM</value>
           </preference>
        </portlet-preferences>
      7. Delete the page

      Actual behavior: The preference tags weren't removed from the portlet-preferences tag
      Expected behavior: The preference tags should have been removed, so the entry should look like the following:

      <portlet-preferences />

      Reproduced on 6.2.x 971894b519ac5b15dc3d2d6f8b4c7bf9774e6b90

      Reproduced on master aa449cc90f8c84f8c69ee72ce2700ff8d63f477d

        Attachments

          Activity

            People

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

              Dates

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

                Packages

                Version Package
                7.0.0 DXP FP84
                7.0.X
                7.1.10 DXP FP12
                7.1.X
                7.2.X
                Master