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

Fragments editor dumps stacktrace on syntax error in editor, unhelpful UI error message

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 7.1.10 DXP FP5, 7.2.0 Beta 3
    • Fix Version/s: 7.1.X, Master
    • Component/s: WCM > Fragments
    • Labels:
      None

      Description

      Found out during reproduction of Christoph Rabel's forum post:

      When editing a fragment HTML with Freemarker elements, any (temporary) error (due to the preview being generated if the typing break exceeds a few milliseconds) will dump a huge amount of stacktrace (60kB in DXP 7.1 SP1, 27kB in 7.2 B3) onto tomcat's console, while the editor is left with a nondescript error message (DXP 7.1 SP1: "Page Fragments is temporarily unavailable."; 7.2 B3: "An unexpected error occurred")

      Screenshot made on 7.2b3, apart from the actual error message text it's "the same" as in 7.1. Attaching out71.txt for DXP 7.1 SP1, out72b3.txt for 7.2B3

        Attachments

        1. out71.txt
          61 kB
        2. out72b3.txt
          27 kB
        3. Screenshot_20190429_145720.png
          Screenshot_20190429_145720.png
          24 kB

          Issue Links

            Activity

              People

              • Assignee:
                yang.cao Yang Cao
                Reporter:
                olaf.kock Olaf Kock
                Participants of an Issue:
                Recent user:
                Yang Cao
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  29 weeks, 1 day ago

                  Packages

                  Version Package
                  7.1.X
                  Master