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

"Copy page" fails when trying to copy a private page

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 7.2.0 GA1, 7.2.X, Master
    • Fix Version/s: Master
    • Component/s: Sites Administration
    • Labels:
      None

      Description

      Summary

      The problem occurs when a user tries to make a copy of a private page. This has been reproduced on a clean install of 7.2.0 GA1.

       

      Steps to reproduce:

      Start up portal and log in as admin

      Allow private pages for the default/current site

      Create a child page for a private page

      Select "Copy page" from created child page

      Enter a name for the new page (eg. "Test")  and click "Add"

       

      Expected result:

      The original page is copied

       

      Actual result:

      No page is copied, and the UI does not respond, no error message shown.

       

      The error seems to rise from the method LayoutsAdminDisplayContext:getCopyLayoutURL(), where the "privateLayout" parameter in the resulting url evaluates as "false" but it should be "true". As a result the portal tries to copy a public page with the given id parameters, but will not find one.

        Attachments

          Activity

            People

            • Assignee:
              yang.cao Yang Cao
              Reporter:
              henri.suominen Henri Suominen
              Participants of an Issue:
              Recent user:
              Yang Cao
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 weeks, 2 days ago

                Packages

                Version Package
                Master