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/11/19 09:59:14 UTC

[GitHub] [rocketmq] xiaoluobotouzi commented on issue #1601: server aclEnable=true, request's extFields value is null.

xiaoluobotouzi commented on issue #1601: server aclEnable=true,request's extFields value is null.
URL: https://github.com/apache/rocketmq/issues/1601#issuecomment-555427262
 
 
   I debugged the problem.
   In the placeaccessvalidator class, an exception thrown by a judgment branch in the parse method.
   code:
   `if (request.getExtFields() == null) {  
         throw new AclException("request's extFields value is null");
    }`.
   
   In the BrokerouterAPI class, create remotingcommand in getalltopicconfig method, and extfields is null.
   
   I added a piece of codeļ¼š
   `request.setExtFields(new HashMap<>());`
   
   however,
   In the plainpermissionloader class, validate method, a piece of code continues to throw an exception.
   code:
   `if (plainAccessResource.getAccessKey() == null) {
               throw new AclException(String.format("No accessKey is configured"));
           }`
   
   I added - 192.168.1.2 to globalwhiteremoteaddress in the plain_acl.yml config file.
   
   No exception thrown in log file.
   
   I don't know if my understanding is correct.
   

----------------------------------------------------------------
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