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

Page template propagation adds unexpected ServiceContext attributes

    Details

      Description

      Page template propagation is triggered even on getLayout() calls. Since propagation adds layoutPrototypeLinkEnabled and layoutPrototypeUuid attributes to the ServiceContext, every following Layout action will read and use them as a template, even when it's not needed.

      There are multiple errors caused by this behavior, this is one of them:

      Steps to reproduce:

      1. Start the latest master
      2. Create a new Site
      3. Activate Local Staging with Page Versioning enabled on Public Pages
      4. Create a new Test Collection, and a new Page Template in it
        (Change the layout type of the template before you save it)
      5. Create a new Public Page using the Page Template
      6. Go to that page's configuration
      7. Turn off 'Inherit changes', save

      Expected behavior: Propagation is switched off

      Actual behavior: Propagation is still turned on, not able to disable it

       master @ commit (730b7d8715e539754085b808a0c56e3cd156e672) reproduced

        Attachments

          Activity

            People

            • Assignee:
              hong.zhao Hong Zhao
              Reporter:
              vendel.toreki Vendel Töreki
              Participants of an Issue:
              Recent user:
              Csaba Turcsan
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 2 weeks, 3 days ago

                Packages

                Version Package
                7.0.0 DXP FP64
                7.0.X
                7.1.10 DXP FP5
                7.1.10.1 SP1
                7.1.2 CE GA3
                7.1.X
                Master