Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-7679

Download Definition doesn't quote values starting with YAML syntax characters

    XMLWordPrintable

Details

    • Bug
    • Resolution: Outdated
    • Neutral
    • None
    • 6.2
    • configuration
    • None

    Description

      The action "Download Definition" (aka ExportYamlAction) doesn't always handle YAML Syntax Characters correctly. In the case where you had a JCR based definition where one of the property values starts with one of these characters it can create an invalid definition.

      Reproduce
      Create an app definition in JCR where one of the configuration property values starts with one of the reserved characters.

      Expected
      The value should be surround by quotes so that the YAML parser does not mistake it for some sort of YAML specific functionality.

      Actual
      The value is left as-is which can lead to problems with the definition validity.

      Workaround
      After downloading the definition add the quotes manually in the editor.

      Development Notes
      ExportYamlAction is already deprecated since 6.2.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              rgange Richard Gange
              Services
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD