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

Media Gallery portlet config points to the staging ADT after publishing

    Details

      Description

      Reproduction steps:

      1. Start the latest master bundle
      2. Create a site named "testsite"
      3. Activate local staging, with "Widget Templates" (or "ADT") checked
      4. In staging, create a "Media Gallery" widget template called "MGTemplate"
      5. Create a page called "testpage"
      6. Add a Media Gallery portlet on it
      7. Configure the portlet to use "MGTemplate"
      8. Do a full publication in "Publishing" ==> "Staging" (check "Widget Templates" as well)
      9. Check the database:
        SELECT g.groupKey, g.groupId, p.*
        FROM portletpreferences p
        inner join layout l on (l.companyId = p.companyId and l.plid = p.plid)
        inner join group_ g on (g.companyId = g.companyId and g.groupId = l.groupId)
        where p.portletId like '%IGDisplayPortlet%';
        

        You should see 2 records, one of them is for staging and the other one is the live version of the Media Gallery portlet. Check the XMLs "preferences" columns:
        Expected: the live record has a "displayStyleGroupId" attribute referring to the live groupId
        Actual: the live record has a "displayStyleGroupId" attribute referring to the staging groupId

      Note:
      This is mostly causing problem in remote live, since the staging group and the template is not available on that instance.
      In local staging, it seems like it's working correctly on the UI, but the live site is actually using the template in staging, which is wrong.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              joyce.wang Joyce Wang
              Reporter:
              vendel.toreki Vendel Töreki
              Participants of an Issue:
              Recent user:
              Joel Garman
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  7.0.10.13 DXP SP13
                  7.0.X
                  7.1.10 DXP FP17
                  7.1.10.4 SP4
                  7.1.X
                  7.2.10 DXP FP5
                  7.2.10.2 DXP SP2
                  7.2.X
                  7.3.0 CE GA1
                  7.3.1 CE GA2
                  7.3.10 DXP GA1
                  Master