Uploaded image for project: 'ChartJS Integration'
  1. ChartJS Integration
  2. CHARTJS-38

A blank block is displayed if the content json is malformed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 1.6
    • None
    • None
    • Unknown

    Description

      Reproduction steps:

      • Edit a document
      • Insert a charjs macro
      • Set a malformed json (e.g., use single quotes instead of double quotes for a string value)

      Expected result:

      • A message is displayed to the user, explaining that the json is malformed

      Actual results:

      • The macro displays a blank block, which is not very indicative that something wrong is going on

      Note: a "SyntaxError: JSON.parse: unexpected character at line 5 column 20 of the JSON data" is printed in the console, but that not really user-friendly

      Note: the affect version needs to be refined.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mleduc Manuel Leduc
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: