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

Display page template publication fails

    Description

    To reproduce:
    1. create a site
    2. enable local staging
    3. navigate to Site Builder - Pages - Display Page Templates
    4. add a new template and click on Publish (no need to add any fragment to the page)
    5. navigate to Publishing - Staging
    6. create a new custom publication
    7. publish it to live

    Actual result:
    Publication fails with exception

    An unexpected error occurred with the publication process. Please check your portal and publishing configuration.
    The Page new page could not be imported because of the following error: com.liferay.portal.kernel.dao.orm.ORMException: {"classNameId":"20003","classPK":"36","colorSchemeId":"","companyId":"20101","createDate":1555591289412,"css":"","description":"","descriptionCurrentValue":"","friendlyURL":"\/new-page1","groupId":"39102","headId":"-37","hidden":true,"iconImageId":"0","keywords":"","keywordsCurrentValue":"","lastPublishDate":null,"layoutId":"2","layoutPrototypeLinkEnabled":false,"layoutPrototypeUuid":"","modifiedDate":1555591312632,"mvccVersion":"0","name":"<?xml version='1.0' encoding='UTF-8'?><root available-locales=\"en_US\" default-locale=\"en_US\"><Name language-id=\"en_US\">new page<\/Name><\/root>","nameCurrentValue":"new page","parentLayoutId":"0","parentPlid":"0","plid":"37","priority":2147483647,"privateLayout":false,"publishDate":1555591293043,"robots":"","robotsCurrentValue":"","sourcePrototypeLayoutUuid":"","system":true,"themeId":"","title":"<?xml version='1.0' encoding='UTF-8'?><root available-locales=\"en_US\" default-locale=\"en_US\"><Title language-id=\"en_US\">new page<\/Title><\/root>","titleCurrentValue":"new page","type":"asset_display","typeSettings":"last-import-date=1555591312632\nlast-import-user-name=Test Test\nlast-import-user-uuid=b2f71fe9-cc74-fc72-ee56-ea0c2270736b\n","userId":"20129","userName":"Test Test","uuid":"0648e898-b58a-3418-aa8d-15df9803604c"} is stale in comparison to {"classNameId":"20003","classPK":"36","colorSchemeId":"","companyId":"20101","createDate":1555591289412,"css":"","description":"","descriptionCurrentValue":"","friendlyURL":"\/new-page1","groupId":"39102","headId":"-37","hidden":true,"iconImageId":"0","keywords":"","keywordsCurrentValue":"","lastPublishDate":null,"layoutId":"2","layoutPrototypeLinkEnabled":false,"layoutPrototypeUuid":"","modifiedDate":1555591312632,"mvccVersion":"1","name":"<?xml version='1.0' encoding='UTF-8'?><root available-locales=\"en_US\" default-locale=\"en_US\"><Name language-id=\"en_US\">new page<\/Name><\/root>","nameCurrentValue":"new page","parentLayoutId":"0","parentPlid":"0","plid":"37","priority":2147483647,"privateLayout":false,"publishDate":1555591293043,"robots":"","robotsCurrentValue":"","sourcePrototypeLayoutUuid":"","system":true,"themeId":"","title":"<?xml version='1.0' encoding='UTF-8'?><root available-locales=\"en_US\" default-locale=\"en_US\"><Title language-id=\"en_US\">new page<\/Title><\/root>","titleCurrentValue":"new page","type":"asset_display","typeSettings":"last-import-date=1555591312632\nlast-import-user-name=Test Test\nlast-import-user-uuid=b2f71fe9-cc74-fc72-ee56-ea0c2270736b\n","userId":"20129","userName":"Test Test","uuid":"0648e898-b58a-3418-aa8d-15df9803604c"}.

    Exception is thrown to console. See trace here.

    Expected:
    Publication to succeed

    Tested on master 8c953bc

      Attachments

        Issue Links

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 15 weeks, 4 days ago

                Packages

                Version Package
                Master