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

ASF GitHub Bot commented on NIFI-2453:
--------------------------------------

Github user bbende commented on the issue:

    https://github.com/apache/nifi/pull/772
  
    @YolandaMDavis Thanks for testing this! The behavior you are seeing is 
interesting, I tested this a few times before submitting the PR and again right 
now and can't seem to reproduce that. Also had a unit test that simulated 
starting with only a users file and verified policies were created.
    
    Could you use the debugger to try and step into 
authorizationsHolder.getAllPolicies().isEmpty() and see how isEmpty() is 
returning false?  
    
    It should be an unmodifiable HashSet which seems to call HashMap isEmpty() 
which does return size == 0;


> Seed authorizations when policies are empty
> -------------------------------------------
>
>                 Key: NIFI-2453
>                 URL: https://issues.apache.org/jira/browse/NIFI-2453
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>            Reporter: Matt Gilman
>            Assignee: Bryan Bende
>             Fix For: 1.0.0
>
>
> Authorizations should be seeded when the policies are empty. It should not 
> consider user's or group's.



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

Reply via email to