PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-29629

Layouts are deleted after import when importing page or site templates

    Details

    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed
    • Fix Priority:
      4
    • Caused by:
      Other bug fix
    • Where was the bug?:
      Java
    • Similar Issues:
      Show 5 results 

      Description

      After importing a LAR file with a page or site template, layouts are deleted after the import.

      Steps to reproduce:

      1. Create a LAR file from the default Blog page template on a Liferay instance
      2. Create a new database and start up the portal on this new database
      3. Create a new page template called Blog 2
      4. Click Import on the actions menu and import the LAR created in step 1

      The import will run without error but when you try to view the template page of Blog 2, you'll get an error because the layout is not there.

      The same happens if you check 'Delete missing layouts' when importing a site template.

        Issue Links

          Activity

          Hide
          Michael Saechang added a comment -

          Committed on:
          Portal 6.2.x GIT ID: b98bf0c4d12befc09e76eb93d101147dea63a728.

          Show
          Michael Saechang added a comment - Committed on: Portal 6.2.x GIT ID: b98bf0c4d12befc09e76eb93d101147dea63a728.
          Hide
          Ginson Ren added a comment - - edited

          PASSED Manual Testing using the following steps:

          1. Go to control Panel > Page Templates.
          2. Click Action near Bolg page template.
          3. Export the template as a *.lar file.
          4. Clear up the database and restart the tomcat server.
          5. Go to control Panel > Page Templates.
          6. Add a new page template "Blog 2".
          7. Click Action near Bolg 2.
          8. Import the *.lar to the Blog 2.
          9. Click the Blog 2.
          10. Click the link of "Open Page Template (Opens New Window)".

          Reproduced on:
          Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: aba3f72fdf43645b428ae8ebc2157873a5492d2d.

          The page will display the error message "Not Found The requested resource was not found. http://localhost:8080/group/template-10425"

          Fixed on:
          Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 79afed965e35b5a8e44d89e38952cdf5334c1ffb.
          Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: e36575c21a8fa1e6dbf519234021973e28defdfb.

          The page will display the Blog template.

          Show
          Ginson Ren added a comment - - edited PASSED Manual Testing using the following steps: 1. Go to control Panel > Page Templates. 2. Click Action near Bolg page template. 3. Export the template as a *.lar file. 4. Clear up the database and restart the tomcat server. 5. Go to control Panel > Page Templates. 6. Add a new page template "Blog 2". 7. Click Action near Bolg 2. 8. Import the *.lar to the Blog 2. 9. Click the Blog 2. 10. Click the link of "Open Page Template (Opens New Window)". Reproduced on: Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: aba3f72fdf43645b428ae8ebc2157873a5492d2d. The page will display the error message "Not Found The requested resource was not found. http://localhost:8080/group/template-10425 " Fixed on: Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 79afed965e35b5a8e44d89e38952cdf5334c1ffb. Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: e36575c21a8fa1e6dbf519234021973e28defdfb. The page will display the Blog template.

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 24 weeks, 6 days ago

                Development

                  Structure Helper Panel