apache / rocketmq-dashboard

The state-of-the-art Dashboard of Apache RoccketMQ provides excellent monitoring capability. Various graphs and statistics of events, performance and system information of clients and application is evidently made available to the user.
https://rocketmq.apache.org/
Apache License 2.0
1.08k stars 525 forks source link

ordinary user has no permission to access after setting server.servlet.context-path attribute in application.yml #157

Open yiminyangguang520 opened 1 year ago

yiminyangguang520 commented 1 year ago

The issue tracker is ONLY used for bug report and feature request.

Any question or RocketMQ proposal please use our mailing lists.

BUG REPORT

  1. Please describe the issue you observed: ordinary user has no permission to access after setting server.servlet.context-path attribute in application.yml

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'

  1. Please tell us about your environment: jdk 1.8 branch master

  2. Other information (e.g. detailed explanation, logs, related issues, suggestions how to fix, etc): how to fix: 微信图片_20230328103320

Abhijeetmishr commented 1 year ago

@yiminyangguang520 Can I take this issue ? any suggestion for the fix ?

Oliverwqcwrw commented 1 year ago

@yiminyangguang520 Good Catch!

Welcome your pr @yiminyangguang520 , @Abhijeetmishr

yiminyangguang520 commented 1 year ago

@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