apache/rocketmq-dashboard

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

  1. 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'

  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

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

@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