You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/01/18 09:11:22 UTC

[GitHub] [shardingsphere] RaigorJiang opened a new issue #14862: NPE occurred when none of the global rules are configured in server.yaml.

RaigorJiang opened a new issue #14862:
URL: https://github.com/apache/shardingsphere/issues/14862


   ## Bug Report
   ### Which version of ShardingSphere did you use?
   5.0.1-SNAPSHOT master branch
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   ShardingSphere-Proxy
   
   ### Description
   I know we have default global rule builders, so I try to not configure any rule in server.yaml and start Proxy:
   ````yaml
   rules:
   # - !AUTHORITY
   # users:
   # - root@%:root
   # - sharding@:sharding
   # provider:
   # type: ALL_PRIVILEGES_PERMITTED
   ````
   But NPE happens in ProxyConfigurationLoader :
   \
   ![image](https://user-images.githubusercontent.com/5668787/149905308-9b68e38e-9d21-49e4-a4be-566465ebeb5a.png)
   \
   I think result.getRules() should get an empty collection, not null when none of the rules are configured.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] tristaZero closed issue #14862: NPE occurred when none of the global rules are configured in server.yaml.

Posted by GitBox <gi...@apache.org>.
tristaZero closed issue #14862:
URL: https://github.com/apache/shardingsphere/issues/14862


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org