sinrimin opened a new issue, #5310:
URL: https://github.com/apache/rocketmq/issues/5310
## Broker logs:
```
org.apache.rocketmq.acl.common.AclException: Check signature failed for
accessKey=dashboard
at
org.apache.rocketmq.acl.plain.PlainPermissionManager.validate(PlainPermissionManager.java:683)
at
org.apache.rocketmq.acl.plain.PlainAccessValidator.validate(PlainAccessValidator.java:151)
at
org.apache.rocketmq.broker.BrokerController$2.doBeforeRequest(BrokerController.java:522)
at
org.apache.rocketmq.remoting.netty.NettyRemotingAbstract.doBeforeRpcHooks(NettyRemotingAbstract.java:172)
at
org.apache.rocketmq.remoting.netty.NettyRemotingAbstract$1.run(NettyRemotingAbstract.java:203)
at
org.apache.rocketmq.remoting.netty.RequestTask.run(RequestTask.java:80)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:750)
```
## Probable cause:
Borker signature check excluded extFields name by "_UNIQUE_KEY_QUERY", but
admin tool did not.
PlainAccessValidator.java:141
```java
// Content
SortedMap<String, String> map = new TreeMap<String, String>();
for (Map.Entry<String, String> entry :
request.getExtFields().entrySet()) {
if (!SessionCredentials.SIGNATURE.equals(entry.getKey())
&& !MixAll.UNIQUE_MSG_QUERY_FLAG.equals(entry.getKey())) {
map.put(entry.getKey(), entry.getValue());
}
}
accessResource.setContent(AclUtils.combineRequestContent(request,
map));
```
AclClientRPCHook.java:54
```java
protected SortedMap<String, String> parseRequestContent(RemotingCommand
request) {
request.makeCustomHeaderToNet();
Map<String, String> extFields = request.getExtFields();
// Sort property
return new TreeMap<String, String>(extFields);
}
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]