thisdcw

Results 9 comments of thisdcw

OK This is my recurrence case,use Shiro 2.0.4 and jdk17 ShiroConfig: ![Image](https://github.com/user-attachments/assets/645dd173-4f3b-4d95-9775-f6c68781b2e7) CustomRealm: ![Image](https://github.com/user-attachments/assets/9356ddc9-9510-40a3-b0a6-1b54a6170817) UserService: ![Image](https://github.com/user-attachments/assets/f0605c41-5503-4e84-bb26-2a5c020ed444) User: ![Image](https://github.com/user-attachments/assets/0eb1639a-2c27-4ff1-bd13-bae62a9a7e33) Controller: ![Image](https://github.com/user-attachments/assets/3ef3e8e4-64ba-4b67-beb3-eda3d91fafc8) finally, Post url result is "login success",This shouldn't happen. The...

Or do you need the java file instead of a screenshot? ```java package com.cw.shiro; import jakarta.annotation.PostConstruct; import jakarta.annotation.Resource; import org.apache.shiro.SecurityUtils; import org.apache.shiro.mgt.SecurityManager; import org.apache.shiro.util.ThreadContext; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.SpringApplication;...

The code above is a minimal runnable example. ignore screenshot please

Do you need me to upload the code file directly?

ok Here is the link to my repro project [`[email protected]:thisdcw/cw-learn.git`](https://github.com/thisdcw/cw-learn) Thank you

OK I just uploaded the README.md file with the steps to reproduce the issue. If you need anything else, please let me know.

You can add a log in the `doGetAuthenticationInfo` method, which is called, and `userService.mockException()` is used to simulate the exception. It stands to reason that an exception occurs here and...

I guess what you mean is that I should catch the exception in the business instead of handing it over to Shiro... But I think this is a mishandling, because...

Sorry, I didn't express it clearly. This is indeed a springboot project. You need to use the API request tool to access the interface to reproduce the problem, so I...