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

The web contents using Policy Card template cannot be rendered correctly in Content Display

    Details

      Description

      Step to reproduce:

      1. Add a new site based on Raylife
      2. Navigate to Policies page

      Expected Results:
      The web contents using Policy Card template should be rendered correctly in Content Display.

      Actual Results:
      The following error is shown in Content Display and server console.

      2021-02-18 03:12:25.943 ERROR [http-nio-8080-exec-2][runtime:59] Error executing FreeMarker template
      FreeMarker template error:
      The following has evaluated to null or missing:
      ==> PolicyName  [in template "20100#20126#POLICY-CARD" at line 20, column 27]
      
      ----
      Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
      ----
      
      ----
      FTL stack trace ("~" means nesting-related):
              - Failed at: ${PolicyName.PolicyType.getData()}  [in template "20100#20126#POLICY-CARD" at line 20, column 25]
      ----
      
      Java stack trace (for programmers):
      ----
      freemarker.core.InvalidReferenceException: [... Exception message was already printed; see it above ...]
              at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:134)
              at freemarker.core.UnexpectedTypeException.newDescriptionBuilder(UnexpectedTypeException.java:85)
      

      Reproduced on:
      Tomcat 9.0.40 + MySQL 5.7. Portal master GIT ID: dff9a97f1f38623c3e1c7a7d6c51bf1cb46d80e4.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yang.cao Yang Cao
              Reporter:
              yang.cao Yang Cao
              Participants of an Issue:
              Recent user:
              Brian Wulbern
              Engineering Assignee:
              Eudaldo Alonso
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  7.4.0 CE GA1
                  Master