You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by Colm O hEigeartaigh <co...@apache.org> on 2017/02/06 09:38:03 UTC

Re: Review Request 55166: There was a logical error in parsing the configuration file when executing the database script.

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/55166/#review164325
-----------------------------------------------------------


Ship it!




Ship It!

- Colm O hEigeartaigh


On Jan. 19, 2017, 3:25 p.m., Qiang Zhang wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/55166/
> -----------------------------------------------------------
> 
> (Updated Jan. 19, 2017, 3:25 p.m.)
> 
> 
> Review request for ranger, Don Bosco Durai, Colm O hEigeartaigh, Ramesh Mani, Selvamohan Neethiraj, and Velmurugan Periasamy.
> 
> 
> Bugs: RANGER-1290
>     https://issues.apache.org/jira/browse/RANGER-1290
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> There was a logical error in parsing the configuration file when executing the database script.
> Command line starting with \u2019#\u2018 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.
> 
> 
> Diffs
> -----
> 
>   security-admin/scripts/dba_script.py e5a1f59 
> 
> Diff: https://reviews.apache.org/r/55166/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Qiang Zhang
> 
>