You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2019/03/14 11:30:52 UTC

[GitHub] [rocketmq] scruel opened a new issue #1086: PlainPermissionLoader: NullPointerException if permissions are not configured(with admin user).

scruel opened a new issue #1086: PlainPermissionLoader: NullPointerException if permissions are not configured(with admin user).
URL: https://github.com/apache/rocketmq/issues/1086
 
 
   The issue tracker is **ONLY** used for bug report(feature request need to follow [RIP process](https://github.com/apache/rocketmq/wiki/RocketMQ-Improvement-Proposal)). Keep in mind, please check whether there is an existing same report before your raise a new one.
   
   Alternately (especially if your communication is not a bug report), you can send mail to our [mailing lists](http://rocketmq.apache.org/about/contact/). We welcome any friendly suggestions, bug fixes, collaboration and other improvements.
   
   Please ensure that your bug report is clear and that it is complete. Otherwise, we may be unable to understand it or to reproduce it, either of which would prevent us from fixing the bug. We strongly recommend the report(bug report or feature request) could include some hints as the following:
   
   **BUG REPORT**
   
   1. Please describe the issue you observed:
   
   - What did you do (The steps to reproduce)?
   1. enable ACL then configure the plain_acl.yml file(just remove the default account 'RocketMQ'):
   ```
   globalWhiteRemoteAddresses:
   
   accounts:
   - accessKey: <AK>
     secretKey: <SK>
     # if it is admin, it could access all resources
     admin: true
   ```
   2. producer: set AK & SK, then start and send any message to the broker.
   
   - What did you expect to see?
   admin could access all resources as mention by the default config file,
   so I shouldn't see any exception.
   
   - What did you see instead?
   ```
   2019-03-14 16:38:02.145 [pool-2-thread-3] ERROR org.apache.rocketmq.spring.core.RocketMQTemplate - syncSendOrderly failed. destination:xxx-topic, message:GenericMessage [payload=abc headers={key=xxx, id=xxx, timestamp=xxx}] 
   2019-03-14 16:38:02.145 [pool-2-thread-3] ERROR com.bookwt.book.controller.PushController - CODE: 1  DESC: java.lang.NullPointerException, org.apache.rocketmq.acl.plain.PlainPermissionLoader.checkPerm(PlainPermissionLoader.java:131)
   For more information, please visit the url, http://rocketmq.apache.org/docs/faq/; nested exception is org.apache.rocketmq.client.exception.MQBrokerException: CODE: 1  DESC: java.lang.NullPointerException, org.apache.rocketmq.acl.plain.PlainPermissionLoader.checkPerm(PlainPermissionLoader.java:131)
   For more information, please visit the url, http://rocketmq.apache.org/docs/faq/
   ```
   
   2. Please tell us about your environment:
   rocketmq version: 4.4.0
   jdk version: 1.8.0_182
   
   3. Other information (e.g. detailed explanation, logs, related issues, suggestions how to fix, etc):
   will make PR for this issue
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services