Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-18403

YAML Maps Can Include Dashes and Other Non-Word Characters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.5.0
    • 2.4.2
    • ambari-server
    • None

    Description

      AMBARI-18366 introduced a pattern to match in when converting properties to YAML which looks for Maps of Maps. Example:

      foo : 
        bar : 
          [baz]
        foobar :
          [biz]
      

      However, this does not take into account non-word characters such as dashes. The regex should be revised to look for specific markers for the map-within-a-map, allowing for non-space characters as keys. The following should pass:

      storm-cluster  :  
        hosts:
          [c6401.ambari.apache.org, c6402.ambari.apache.org, c6403-master.ambari.apache.org]
        groups:
          [hadoop, hadoop-secure]
      

      Attachments

        1. AMBARI-18403.patch
          3 kB
          Jonathan Hurley

        Issue Links

          Activity

            People

              jonathanhurley Jonathan Hurley
              jonathanhurley Jonathan Hurley
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: