Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-9290

YAML configuration error only reported in Definitions app, not console

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Neutral
    • None
    • 6.2.42
    • None
    • None

    Description

      Steps to reproduce

      1. Create a light module with the two attached definitions, one rest client and one webhook using the rest client.
      2. With Magnolia running, modify the webhook config as shown in the source so that the rest client is incorrectly referenced. The webhook now refers to a non-existent rest client.
      3. Open the Definitions app and see that there is a "Severe" error message attached to the webhook config, "A rest client definition [NotTheExampleRestClient] does not exist"  

      Expected results

      When YAML config is reloaded we parse it for errors and show them in the server console output. As a developer working on many YAML files, it is easier to watch a terminal than it is to keep on opening/refreshing the Definitions app so this is a useful feature. It would be reasonable to expect the naming mismatch to appear here alongside any syntax errors.

      Actual results

      No mention is made of the error. Only the Definitions app shows a message.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              chris.jennings Chris Jennings
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Bug DoR
                  Task DoD