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

Editing the template engine configuration through Configuration Admin causes the template engines to fail

    Details

    • Fix Priority:
      5

      Description

      Steps to reproduce:

      1. Go to Control Panel > Configuration Admin
      2. Edit the Velocity Engine configuration
      3. Remove serviceLocator as restricted variable
      4. Save

      Expected behavior: The configuration is saved and applied to the template engine.
      Current behavior: The portal is no longer accesible. See error log:

      09:58:14,444 ERROR [http-bio-8080-exec-14][ThemeUtil:394] _SERVLET_CONTEXT_/html/themes/control_panel/templates/portlet.vm does not exist
      09:58:14,446 ERROR [http-bio-8080-exec-14][ThemeUtil:394] _SERVLET_CONTEXT_/html/themes/control_panel/templates/portal_normal.vm does not exist
      

      Similarly, editing Freemarker engine configuration breaks the support for FTL.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              albert.lee Albert Lee
              Reporter:
              eduardo.garcia Eduardo García
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 43 weeks, 1 day ago

                  Packages

                  Version Package
                  7.0.0 M5