basho/riak_core — pull request #488 by Vagabond (2014-01-02 21:39:31+00:00)
Title: Wildcard security sources overlapping with regular user sources causes issues

```
./rel/riak/bin/riak-admin security add-user andrew
./rel/riak/bin/riak-admin security add-source andrew 127.0.0.1/32 trust
./rel/riak/bin/riak-admin security add-source all 127.0.0.1/32 trust
./rel/riak/bin/riak-admin security print-sources
RPC to 'riak@127.0.0.1' failed: {'EXIT',
{badarg,
[{erlang,binary_to_list,[all],[]},
{riak_core_security,
'-prettyprint_users/2-lc$^0/1-0-',1,
[{file,"src/riak_core_security.erl"},
{line,70}]},
{riak_core_security,
'-prettyprint_users/2-lc$^0/1-0-',1,
[{file,"src/riak_core_security.erl"},
{line,70}]},
{riak_core_security,prettyprint_users,2,
[{file,"src/riak_core_security.erl"},
{line,70}]},
{riak_core_security,
'-print_sources/1-lc$^0/1-0-',1,
[{file,"src/riak_core_security.erl"},
{line,85}]},
{riak_core_security,print_sources,1,
[{file,"src/riak_core_security.erl"},
{line,85}]},
{rpc,'-handle_call_call/6-fun-0-',5,
[{file,"rpc.erl"},{line,205}]}]}}
```

Sources that overlap with an 'all' source need to be handled better, somehow.

See also #451