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

Global scoped portlets force re-importing their referred contents during site creation from site template

    Details

      Description

      1. Set up a 7.0.x portal
      2. Before startup, add these parameters to portal-ext.properties
        staging.delete.temp.lar.on.failure=false
        staging.delete.temp.lar.on.success=false
        
      3. Create a site template called "temp1"
      4. Place a Blogs portlet on one of its pages
      5. Set the Scope of Blogs portlet to Global
      6. Switch to the Global site (e.g. by "Go to Other Site" compass icon)
      7. Create a blog entry called "GlobalBlog1" (in Global scope)
      8. Create a new site based on "temp1" template
      9. Find the latest LAR file in "tomcat-*/temp" directory

      Actual: the LAR file contains the Blog Entry itself (this is wrong since it belongs under the Global scope)
      Expected: contents belonging to other Scopes are not exported

      The bigger problem with this is that when the template propagation exports contents from the Global scope, at the import phase it will delete and re-insert data that does not even belong to either the template or the site. This also creates performance issues.

        Attachments

          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:
              2 years, 7 weeks, 2 days ago

                Packages

                Version Package
                7.0.0 DXP FP85
                7.0.10.12 DXP SP12
                7.0.X