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

Publishing generates portletPreferences with ownerId = 0, ownerType = 3, plid = 0

Details

    • 4

    Description

      Reproduce steps:
      1. Start a bundle
      2. Verify that none of portletPrerences in db has a combination of ownerId = 0, ownerType = 3, plid = 0
      3. Enable local(or remote) staging with all contents

      Expected: Verify that none of portletPrerences in db has a combination of ownerId = 0, ownerType = 3, plid = 0
      Actual: several portletPrerences have a combiantion of ownerId = 0, ownerType = 3, plid = 0

      The correct combinations can only be one of these:
      1. OwnerId = companyId, ownerType = 1, plid = 0
      2. OwnerId = groupId, ownerTYpe = 2, plid = 0
      3. OwnerId = 0, OwnerType = 3, plid = layoutId
      4. OwnerId = userId, OwnerType = 4, plid = 0

      In the case of local staging, after first enabling, there are few portletPreferences with ownerId = 0, ownerType = 3, plid = 0, see database portletPreferences table. For example, SiteTeamPortlet, DDLPortlet, PageCommentsPortlet, PageRatingPortlets, etc.

      In the case of remote staging, publish to live. There will be a portletPrerences for changeSetPortlet with ownerId = 0, ownerType = 3, plid = 0, see database portletPreferences table for live site.

      PS:
      When you have a preferences of 0, 3, 0, there is no way to tell which site or page this preference belong to. All sites or pages will be sharing the same preferences, which is obviously not we wanted.

      Attachments

        Activity

          People

            support-lep@liferay.com SE Support
            arthur.chen Arthur Chen
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              2 years, 9 weeks, 1 day ago

              Packages

                Version Package
                7.3.5 CE GA6
                7.3.10 DXP GA1
                Master