You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Jonathan Hurley (JIRA)" <ji...@apache.org> on 2016/09/15 15:50:20 UTC

[jira] [Created] (AMBARI-18403) YAML Maps Can Include Dashes and Other Non-Word Characters

Jonathan Hurley created AMBARI-18403:
----------------------------------------

             Summary: YAML Maps Can Include Dashes and Other Non-Word Characters
                 Key: AMBARI-18403
                 URL: https://issues.apache.org/jira/browse/AMBARI-18403
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
    Affects Versions: 2.5.0
            Reporter: Jonathan Hurley
            Assignee: Jonathan Hurley
            Priority: Critical
             Fix For: 2.5.0


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

{noformat}
foo : 
  bar : 
    [baz]
  foobar :
    [biz]
{noformat}

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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)