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

If we disable the freemarker fragment entry processor, we still validate fragments for having valid freemarker when we shouldn't be

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • Master
    • Master
    • WCM
    • None

    Description

      Description
      If we disable the Freemarker Fragment Entry Processor through the instance settings, we will not render freemarker anymore. Therefore, it also makes sense that we shouldn't be validating freemarker anymore as well. However, we currently will still validate freemarker.

      Steps to Reproduce

      1. Disable freemarker for fragments
      2. Create a fragment with invalid alternative syntax freemarker (but make sure it uses alternate freemarker)
      3. Publish fragment

      Expected Result
      Fragment is publishable and display as plain text in fragment preview

      Actual Result
      Fragment is not publishable because it has invalid freemarker in it, but it still displays as plain text in fragment preview, showing that it is not rendering due to us disabling freemarker

      Tested on Tomcat 9.0.17 + MySQL 5.7
      Portal master GIT ID: d1702d027a7cc764adf88355a8ba1d4539587a73

      Attachments

        Issue Links

          Activity

            People

              kyle.miho Kyle Miho
              kyle.miho Kyle Miho
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                3 years, 18 weeks, 3 days ago

                Packages

                  Version Package
                  Master