Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
It makes shiro rely too much on ThreadContext, this is a problem in web envirionments where websocket packets tends to sneak around the installed filter.
public static void main(String[] args) {
DefaultSecurityManager n = new DefaultSecurityManager();
SecurityUtils.setSecurityManager;
DefaultSecurityManager m = new DefaultSecurityManager();
SubjectContext ct = m.createSubjectContext();
if (m != ct.getSecurityManager())
SubjectContext copy = m.copy(ct);
if (m != copy.getSecurityManager())
}