Comments (6)
I feel very embarrassed
Absolutely no need. Your question prompted the cleanup of the code, it was indeed confusing, so thank you for your contribution!
Always ask questions!
from shiro.
@xian1295004710 don't worry, there is no stupid question! Thank you for asking and using Apache Shiro!
We hope you will add your first contribution soon :)
Don't hesitate!
from shiro.
I'm very glad to hear that (^o^), and thanks for your encouragement. It could make my day!
from shiro.
I don't see how... the variable is set to true only if any permission is present... hence the variable name.
Am I not seeing something you are seeing? In my view it looks like it works as designed
from shiro.
@xian1295004710 HasAtLeastOnePermission is always = true only for the latest valid permission of the list, if a check is false, the variable is not set, I think this is your misunderstanding.
The logic is that if we don't find any permitted permission in the list, we check the first permission to raise an error with a message related to the check.
Side note: We can optimize a little by adding a break into the loop after setting hasAtLeatOnePermission to true.
from shiro.
@lprimak @fpapon Thank you for taking time to answer the question very much. I am a newbie. I feel very embarrassed about that misunderstanding, I could run a test by myself, but I was too confident to ask that silly question, which makes your precious time wasted. I hope you don't mind.
from shiro.
Related Issues (20)
- Support for GraalVMs native-image HOT 4
- [Bug] Jakarta EE form resubmit doesn't work in certain docker configurations
- [Bug] Run time dependencies missing from shiro-web 1.13.0 karaf feature HOT 1
- [Bug] WildCardPermission.implies() has incorrect check for combination (x,y) permission HOT 2
- shiro-web jakarta only references javax and not jakarta in MANIFEST.MF HOT 7
- [Question] Ldap search filters escape Attributes HOT 1
- How to configure Apache Shiro bundles correctly for use in Apache Karaf HOT 3
- [Question] Having trouble with Jakarta EE and Shiro HOT 14
- [Question] JWT and Stateful HOT 5
- [Bug] Ini.java missing from 1.13.0 shiro-core maven source attachment HOT 2
- [Bug] Caused by: java.lang.NoClassDefFoundError: javax/servlet/Filter HOT 8
- [Enhancement] Jakarta EE9+ without classifiers HOT 2
- [Regression] commons-configuration2 is pulled in as a required dependency HOT 12
- [Question] 2.0.1 Release Time? HOT 2
- [Enhancement] Make Shiro compile on JDK 22
- passkey/webauthn support HOT 2
- Wrong class registered in jaxrs feature
- [Bug] Cannot login with Shiro2 hashed password from IniRealm HOT 3
- [Enhancement] Migrate integration tests to Jakarta namespace HOT 1
- Bouncycastle dependency problem with Karaf 4.4.5 and Shiro 2.0.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shiro.