[
https://issues.apache.org/jira/browse/KNOX-997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16366429#comment-16366429
]
Larry McCay commented on KNOX-997:
----------------------------------
[~jeffreyr97] - that appears to set a JVM wide singleton and I fear that it
will not work properly with multiple topologies that are using the Shiro
provider in the same JVM. Even the use of this setSecurityManager method is
warned against in the javadocs that you reference.
Have you successfully tested this with multiple shiro protected topologies in
the same gateway?
> call to Shiro Subject logout method get an exception. - Invalid
> configuration.
> -------------------------------------------------------------------------------
>
> Key: KNOX-997
> URL: https://issues.apache.org/jira/browse/KNOX-997
> Project: Apache Knox
> Issue Type: Bug
> Components: Server
> Affects Versions: 0.13.0
> Environment: all
> Reporter: Jeffrey E Rodriguez
> Assignee: Jeffrey E Rodriguez
> Priority: Major
> Fix For: 1.1.0
>
> Attachments: KNOX-997.patch.001, KNOX-997.patch.001
>
>
> call to Shiro subject logout method causes exception.
> Applications that want to invalidate sessions in Knox by caling Shiro
> Subject logout method or other methods requiring a Shiro Security Manager may
> get an exception:
> 'org.apache.shiro.UnavailableSecurityManagerException: No SecurityManager
> accessible to the calling code, either bound to the
> org.apache.shiro.util.ThreadContext or as a vm static singleton. This is an
> invalid application configuration."
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)