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

Portlet body doesn't display with an invalid FreeMarker template if set asyncRenderTimeout in config file

    Details

      Description

      Steps to Reproduce:

      1. Add config file com.liferay.portal.template.freemarker.configuration.FreeMarkerEngineConfiguration.config in liferay.home/osgi/configs, and add property asyncRenderTimeout=L"7200000" in it.
      2. Start portal.
      3. Go to Content & Data > Web Content.
      4. Add a new structure.
      5. Add a new template for the structure with below script:
        <#assign ac=Application['org.springframework.web.context.WebApplicationContext.ROOT']>
        <#list ac.getBeanDefinitionNames() as item>
        	<p><b>${item}</b></p>
        </#list>
        
      6. Add Web Content Display portlet into a page.
      7. Add a new content of the created structure and template.

      Expected Results:
      Template error should display in Web Content portlet.

      Actual Results:
      Portlet body doesn't display.

      Note:
      When preview the web content in Web Content admin, error "Web Content is temporarily unavailable. " occurred.

      Reproduced on:
      Tomcat 9.0.37 + MySQL 5.7. Portal master DXP GIT ID: dab7ad790ee947a2abc6cc6b656a1caa46943ac5.

        Attachments

        1. error.png
          error.png
          19 kB
        2. expected.png
          expected.png
          57 kB
        3. WCD.png
          WCD.png
          20 kB

          Issue Links

            Activity

              People

              Assignee:
              summer.zhang Summer Zhang
              Reporter:
              summer.zhang Summer Zhang
              Participants of an Issue:
              Recent user:
              Brian Wulbern
              Engineering Assignee:
              Shuyang Zhou
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                9 weeks, 4 days ago

                  Packages

                  Version Package
                  7.3.X
                  Master