ordinary user has no permission to access after setting server.servlet.context-path attribute in application.yml
Opened this issue · 3 comments
The issue tracker is ONLY used for bug report and feature request.
Any question or RocketMQ proposal please use our mailing lists.
BUG REPORT
- Please describe the issue you observed:
ordinary user has no permission to access after setting server.servlet.context-path attribute in application.yml
- What did you do (The steps to reproduce)?
set server.servlet.context-path and rocketmq.config.loginRequired attribute in application.yml
application.yml as follow:
server.servlet.context-path: /rmq
...
rocketmq.config.loginRequired: true
user.properties as follow:
admin=admin,1
user1=user1
user2=user2
start app with branch master,login with user 'user1', It occur error with prompt 'no permisson'
-
What did you expect to see?
ordinary user can access normally -
What did you see instead?
It occur 'no permisson'
@yiminyangguang520 Can I take this issue ?
any suggestion for the fix ?
@yiminyangguang520 Good Catch!
Welcome your pr @yiminyangguang520 , @Abhijeetmishr
@yiminyangguang520 Can I take this issue ? any suggestion for the fix ?
@Abhijeetmishr ok,you can do it by following my suggestion which is shown in picture, or you can fix it by yourself