You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "yiminyangguang520 (via GitHub)" <gi...@apache.org> on 2023/03/28 02:34:13 UTC

[GitHub] [rocketmq-dashboard] yiminyangguang520 opened a new issue, #157: ordinary user has no permission to access after setting server.servlet.context-path attribute in application.yml

yiminyangguang520 opened a new issue, #157:
URL: https://github.com/apache/rocketmq-dashboard/issues/157

   The issue tracker is **ONLY** used for bug report and feature request. 
   
   Any question or RocketMQ proposal please use our [mailing lists](http://rocketmq.apache.org/about/contact/).
   
   **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'
   
   2. Please tell us about your environment:
       jdk 1.8
       branch master
   
   4. Other information (e.g. detailed explanation, logs, related issues, suggestions how to fix, etc):
   how to fix:
   ![微信图片_20230328103320](https://user-images.githubusercontent.com/7455230/228112311-23b1b60a-f5b7-49fb-a465-a273776964cb.jpg)
   
   


-- 
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: commits-unsubscribe@rocketmq.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq-dashboard] Abhijeetmishr commented on issue #157: ordinary user has no permission to access after setting server.servlet.context-path attribute in application.yml

Posted by "Abhijeetmishr (via GitHub)" <gi...@apache.org>.
Abhijeetmishr commented on issue #157:
URL: https://github.com/apache/rocketmq-dashboard/issues/157#issuecomment-1534186261

   > @yiminyangguang520 @Oliverwqcwrw  Can I take this issue ? any suggestion for the fix and how to reproduce ?
   
   


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq-dashboard] Abhijeetmishr commented on issue #157: ordinary user has no permission to access after setting server.servlet.context-path attribute in application.yml

Posted by "Abhijeetmishr (via GitHub)" <gi...@apache.org>.
Abhijeetmishr commented on issue #157:
URL: https://github.com/apache/rocketmq-dashboard/issues/157#issuecomment-1534185672

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


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq-dashboard] Oliverwqcwrw commented on issue #157: ordinary user has no permission to access after setting server.servlet.context-path attribute in application.yml

Posted by "Oliverwqcwrw (via GitHub)" <gi...@apache.org>.
Oliverwqcwrw commented on issue #157:
URL: https://github.com/apache/rocketmq-dashboard/issues/157#issuecomment-1535584491

   @yiminyangguang520 Good Catch! 
   
   Welcome your pr @yiminyangguang520 , @Abhijeetmishr 


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq-dashboard] yiminyangguang520 commented on issue #157: ordinary user has no permission to access after setting server.servlet.context-path attribute in application.yml

Posted by "yiminyangguang520 (via GitHub)" <gi...@apache.org>.
yiminyangguang520 commented on issue #157:
URL: https://github.com/apache/rocketmq-dashboard/issues/157#issuecomment-1535818081

   > 
   
   ok, you can do it by following my suggestions


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq-dashboard] yiminyangguang520 commented on issue #157: ordinary user has no permission to access after setting server.servlet.context-path attribute in application.yml

Posted by "yiminyangguang520 (via GitHub)" <gi...@apache.org>.
yiminyangguang520 commented on issue #157:
URL: https://github.com/apache/rocketmq-dashboard/issues/157#issuecomment-1535820206

   > @yiminyangguang520 Can I take this issue ? any suggestion for the fix ?
   
   ok,you can do it by following my suggestion which is shown in picture, or you can fix it by yourself


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org