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

Existing pages with layout template will be unaccessible if I import a layout template from a different system

    Details

    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed
    • Story Points:
      5
    • Fix Priority:
      3
    • Caused by:
      Feature/improvement was not complete
    • Where was the bug?:
      Java

      Description

      Steps to reproduce:
      1) Create a Page template with some portlet
      2) Export it
      3) Delete the Page template from the Portal
      4) Create a new Page template (TestTemplate) with e.g. a Navigation portlet
      5) Create a Page with this template
      6) Go back to the Import the first template to the TestTemplate
      7) Try to access the page
      Result:
      11:23:44,426 ERROR [http-bio-8080-exec-15][MainServlet:426] com.liferay.portal.NoSuchLayoutPrototypeException: No LayoutPrototype exists with the key

      {uuid=67712f5c-7d50-4dcb-b6f5-7cf33971ed74}
      com.liferay.portal.NoSuchLayoutPrototypeException: No LayoutPrototype exists with the key {uuid=67712f5c-7d50-4dcb-b6f5-7cf33971ed74}

      at com.liferay.portal.service.persistence.LayoutPrototypePersistenceImpl.findByUuid_First(LayoutPrototypePersistenceImpl.java:724)
      at com.liferay.portal.service.impl.LayoutPrototypeLocalServiceImpl.getLayoutPrototypeByUuid(LayoutPrototypeLocalServiceImpl.java:139)
      at sun.reflect.GeneratedMethodAccessor320.invoke(Unknown Source)...ee

        Issue Links

          Activity

          Hide
          pani.gui Pani Gui (Inactive) added a comment -

          It is blocked by LPS-36022.

          Show
          pani.gui Pani Gui (Inactive) added a comment - It is blocked by LPS-36022 .
          Hide
          pani.gui Pani Gui (Inactive) added a comment -

          This ticket is always blocked by LPS-36022.

          Show
          pani.gui Pani Gui (Inactive) added a comment - This ticket is always blocked by LPS-36022 .
          Hide
          pani.gui Pani Gui (Inactive) added a comment -

          PASSED Manual Testing following the steps in the description.

          Reproduced on:
          Tomcat 7.0 + MySQL 5. Portal 6.1.20 EE GA2.

          Existing page with a page template is unaccessible if importing a different page template to the template. It causes NoSuchLayoutPrototypeException in the log.

          Fixed on:
          Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 0a25ff2cbb580ca142173ccfe1f9308f2529f454.

          There will not be an exception thrown in the log when importing a different page template to the template that associated with a page.

          Show
          pani.gui Pani Gui (Inactive) added a comment - PASSED Manual Testing following the steps in the description. Reproduced on: Tomcat 7.0 + MySQL 5. Portal 6.1.20 EE GA2. Existing page with a page template is unaccessible if importing a different page template to the template. It causes NoSuchLayoutPrototypeException in the log. Fixed on: Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 0a25ff2cbb580ca142173ccfe1f9308f2529f454. There will not be an exception thrown in the log when importing a different page template to the template that associated with a page.
          Hide
          pani.gui Pani Gui (Inactive) added a comment -

          PASSED Manual Testing following the steps in the description.

          Fixed on:
          Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 67c8d4806efb43ab07551565fc9bf51375cbfaff.

          There will not be an exception thrown in the log when importing a different page template to the template that associated with a page.

          Show
          pani.gui Pani Gui (Inactive) added a comment - PASSED Manual Testing following the steps in the description. Fixed on: Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 67c8d4806efb43ab07551565fc9bf51375cbfaff. There will not be an exception thrown in the log when importing a different page template to the template that associated with a page.

            People

            • Assignee:
              pani.gui Pani Gui (Inactive)
              Reporter:
              vilmos.papp Vilmos Papp
              Recent user:
              Jeremy Marshall
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 31 weeks, 4 days ago

                Development

                  Subcomponents