[ 
https://issues.apache.org/jira/browse/RANGER-1067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15362095#comment-15362095
 ] 

Dongying Jiao commented on RANGER-1067:
---------------------------------------

When modify configurations in service repo,  validateRequiredConfigParams 
function is called, this function will filter out configurations with null 
value, so such configuration will not be saved in x_service_config_map table.
So new configuration with null value should not be recorded in x_trx_log table.

> admin audit logging is not correct when add and delete the configuration from 
> the service repo.
> -----------------------------------------------------------------------------------------------
>
>                 Key: RANGER-1067
>                 URL: https://issues.apache.org/jira/browse/RANGER-1067
>             Project: Ranger
>          Issue Type: Bug
>          Components: admin
>    Affects Versions: 0.5.2
>            Reporter: Dongying Jiao
>             Fix For: 0.6.0
>
>         Attachments: RANGER-1067.patch, addconfiguration.png, 
> deleteconfiguration.png
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> Scenario:
> 1. Go to default hdfs repo config.
> 2. Add a configuration.
> 3. Check the admin audit log.
> 4. Then delete the configuration. 
> 5. Check the admin audit log.
> Error:
> When adding configuration, there are some fields that are not changed 
> recorded in the audit log. The old value and new value are all null.
> When deleting the configuration, the audit log is recorded not correctly.
> For example:I added only one configuration, name is "TestConfig", value is 
> "abc". In the audit log, "TestConfig" is correctly recorded, but several 
> other fields are also recorded, with old value and new value are all null. 
> Then delete it, abc is recorded as the value of other fields other than 
> "TestConfig" in audit log.
> Screenshot is attached.



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

Reply via email to