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:
[email protected]


With regards,
Apache Git Services

Reply via email to