apache / apache/rocketmq-client-python

Got wrong error stack when using ACL

Open
#91 0 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
Python
Stars
305
Forks
98
PR merge metrics
No merged PRs in 30d

Description

1. Please describe the issue you observed:

- What did you do (The steps to reproduce)?
Append 'aclEnable=true' in broker.conf, restart broker.
broker will load default config 'plain_acl.yml',
Use Producer sample,add ```producer.set_session_credentials('RocketMQ','12345678','')```
before ```producer.start()```,modify topic to ```topicA``` then run it.
- What did you expect to see?
Permission denied error stack.
- What did you see instead?
```
rocketmq.exceptions.ProducerSendSyncFailed: No route info of this topic: topicA,error:-1,in file rocketmq-client-cpp/src/producer/DefaultMQProducerImpl.cpp line:418
```
2. Please tell us about your environment:

- What is your OS?
osx10.14.6
- What is your client version?
2.0
- What is your RocketMQ version?
rocketmq4.7.0

Contributor guide

Open the contributing guide

Research direction

Reproduce the ACL setup from broker.conf with plain_acl.yml, then run the Producer sample using set_session_credentials and topicA. Start by tracing the reported failure at rocketmq-client-cpp/src/producer/DefaultMQProducerImpl.cpp:418 and compare it with the expected permission-denied error. Done means the client reports the ACL denial rather than “No route info of this topic.”

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
backend, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.