[ 
https://issues.apache.org/jira/browse/RANGER-1290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Qiang Zhang updated RANGER-1290:
--------------------------------
    Description: 
There was a logical error in parsing the configuration file when executing the 
database script.
Command line starting with ’#‘ have not been filtered out during parsing the 
configuration file to get configurating value. If we use '#' to comment a line 
and it includes '=', the comment will not work. On the left of the '=', it will 
be parsed as a key and the right will be parsed as a value. As a result, there 
are as follows problems:
1. There are invalid attribute values.
2. Invalid parsing will degrade the performance of program. 

  was:
Comment lines have not been filtered out when the populate_global_dict function 
parsed install.properties in security-admin/scripts/dba_script.py. So if we use 
'#' to comment a line and it includes '=', the comment will not work. On the 
left of the '=', it will be parsed as a key and the right will be parsed as a 
value. As a result, there are two problems as follows:
1. There are invalid attribute values in globalDict variable.
2. Invalid parsing will degrade the performance of program. 

        Summary: There was a logical error in parsing the configuration file 
when executing the database script.  (was: Comment lines have not been filtered 
out when the populate_global_dict function parsed install.properties in 
security-admin/scripts/dba_script.py. )

> There was a logical error in parsing the configuration file when executing 
> the database script.
> -----------------------------------------------------------------------------------------------
>
>                 Key: RANGER-1290
>                 URL: https://issues.apache.org/jira/browse/RANGER-1290
>             Project: Ranger
>          Issue Type: Bug
>          Components: admin
>            Reporter: Qiang Zhang
>            Assignee: Qiang Zhang
>            Priority: Minor
>              Labels: patch
>         Attachments: 
> 0001-RANGER-1290-Comment-lines-have-not-been-filtered-out.patch
>
>
> There was a logical error in parsing the configuration file when executing 
> the database script.
> Command line starting with ’#‘ have not been filtered out during parsing the 
> configuration file to get configurating value. If we use '#' to comment a 
> line and it includes '=', the comment will not work. On the left of the '=', 
> it will be parsed as a key and the right will be parsed as a value. As a 
> result, there are as follows problems:
> 1. There are invalid attribute values.
> 2. Invalid parsing will degrade the performance of program. 



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

Reply via email to