ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Hurley (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-18403) YAML Maps Can Include Dashes and Other Non-Word Characters
Date Thu, 15 Sep 2016 15:50:20 GMT
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)

Mime
View raw message