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

NoSuchLayoutSetBranchException error when using Publish Templates after disabling/enabling page versioning

Details

    Description

      Following error is produced if you use Publish Templates and you disable and enable page versioning:

      com.liferay.portal.kernel.exception.NoSuchLayoutSetBranchException: No LayoutSetBranch exists with the primary key 99999

      Root cause of the issue: The ExportImportConfiguration table that contains the Publish Templates configuration, points to a non-existing LayoutSetBranch record.

      Steps to reproduce using Local Staging

      1. Create a site
      2. Enable local staging with page versioning activated
      3. In the Staging section, go to the upper right kebab menu => Publish Templates and create a Publish Template called "template with page versioning"
      4. Go to the upper right kebab menu => Staging Configuration and disable page versioning
      5. Execute a publication with the "template with page versioning" => It should work
      6. Open again "Staging Configuration" and enable page versioning
      7. Go to the publish template page and execute a publication with the "template with page versioning":
        • Expected behavior: the publish operation works
        • Wrong behavior: the publish operation doesn't work and NoSuchLayoutSetBranchException: No LayoutSetBranch exists with the primary key 99999 is produced

      Steps to reproduce using Remote Staging

      1. Configure two Liferay servers with one site in each server
      2. Enable remote staging with page versioning activated from server1 site to server2 site
      3. In the Staging section, go to the upper right kebab menu => Publish Templates and create a Publish Template called "template with page versioning"
      4. Execute a publication with the "template with page versioning" => It should work
      5. Go to the upper right kebab menu => Staging Configuration and disable remote staging
      6. Open again "Staging Configuration" and enable again remote staging with page versioning activated from server1 site to server2 site
      7. Go to the publish template page and execute a publication with the "template with page versioning":
        • Expected behavior: the publish operation works
        • Wrong behavior: the publish operation doesn't work and NoSuchLayoutSetBranchException: No LayoutSetBranch exists with the primary key 99999 is produced

      Note: this use case of temporary disabling and enabling remote staging is used by some customers to be able to double check some configurations in the Live site that are hidden when the remote staging is enabled.

      Attachments

        Activity

          People

            joyce.wang Joyce Wang
            jorge.diaz Jorge Diaz
            Kiyoshi Lee Kiyoshi Lee
            Jorge Diaz Jorge Diaz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              1 year, 21 weeks ago

              Packages

                Version Package
                7.2.10 DXP FP15
                7.2.X
                7.3.10.3 DXP SP3
                7.3.X
                7.4.13 DXP GA1
                Master