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

(Updated Dec. 5, 2016, 10:42 a.m.)


Review request for Ambari, Attila Doroszlai, Sandor Magyari, and Sebastian 
Toader.


Bugs: AMBARI-19067
    https://issues.apache.org/jira/browse/AMBARI-19067


Repository: ambari


Description
-------

The initial implementation of the post user creation hook generates a json file 
that is passed to the fast hdfs tool to perform user home directory creation in 
bulk. If usernames that come from the UI or from LDAPsync contain special 
caracters the generated JSON may be corrupted.

The post user creation hook is amended by this fix to escape usernames in the 
generated json.


Diffs
-----

  ambari-server/src/main/resources/scripts/post-user-creation-hook.sh 34169c1 

Diff: https://reviews.apache.org/r/54318/diff/


Testing (updated)
-------

Successfully tested on local dev environment.


Thanks,

Laszlo Puskas

Reply via email to