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

Mobile Device Rules entities are not removed when pages are deleted which breaks remote publishing

Details

    Description

      Steps to Reproduce:

      1. Create two instance of Liferay, one running on localhost:8080 the other on localhost:9080
      2. Install these two patches on each server
      3. Control Panel → Sites
      4. Create first site, zebra
      5. Create second site, zebra remote. Capture the site id.
      6. Control Panel → Zebra → Site Settings. Enable Remote Live with localhost, local port 9080, zebra remote Site ID → Save.
      7. Mobile Device Rules → Add Rule Group → Name="Tablet" → Save. This will create an MDRRuleGroup for the Site.
      8. Site pages → Add page → "Home"
      9. Site pages → Add page → "Two"
      10. Site pages → Two → Mobile Rule Groups → Click "Define specific mobile rule groups"
      11. Select Rule Group → Tablet. This will associate a custom MDRRuleGroupInstance with page Two.
      12. Now delete page Two. Site Pages -> Two -> Delete
      13. Now view the zebra site
      14. Now try to publish the one remaining page to the Remote Live sites. Go to Home → Publish to Remote Live Now → Publish.

      Intended Result: The page should publish successfully.
      Actual Result: The publish fails (during the export step) with an error like this: com.liferay.portal.kernel.lar.PortletDataException: com.liferay.portal.NoSuchLayoutException: No Layout exists with the primary key 12914 (see attachment)

      Attachments

        Issue Links

          Activity

            People

              mark.jin Mark Jin (Inactive)
              joel.garman Joel Garman
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                10 years, 29 weeks, 2 days ago

                Packages

                  Version Package
                  6.2.0 CE M2