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

Application display templates don't set correct templateName for freemarker template

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 6.2.0 CE M6
    • 6.2.0 CE M6
    • Templates, WCM
    • None

    Description

      The ADT framework uses ddmTemplate is used to create a templateResource, the resourceId will be invalid. Instead of having the form of groupId#companyGroupId#templateId, it will always be groupId#companyGroupId#null

      This is because in /portal-master/portal-impl/src/com/liferay/portal/templateparser/Transformer.java line 129 the templateId is set to a value that is obtained from the current context key "template_id".

      For WCM templates this will contain the templateKey from the database for the linked ddmTemplate. But for ADT templates, the value will always be "null". So the final version of the templateResourceId is groupId#companyGroupId#null.

      This makes it impossible for Liferay IDE's freemarker debugger to be able to set remote breakpoints since it can't properly identifiy the templateResourceId's ahead of time to install remote breakpoints.

      Attachments

        Issue Links

          Activity

            People

              brian.chan Brian Chan
              gregory.amerson Gregory Amerson
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9 years, 34 weeks, 4 days ago

                Packages

                  Version Package
                  6.2.0 CE M6