[jira] [Commented] (KNOX-997) call to Shiro Subject logout method get an exception. - Invalid configuration.

2018-05-09 Thread Larry McCay (JIRA)

[ 
https://issues.apache.org/jira/browse/KNOX-997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16469289#comment-16469289
 ] 

Larry McCay commented on KNOX-997:
--

Resolving this as Won't Fix - there is no reason that there should be code 
inproc within the gateway making this call and making the assumptions that this 
particular provider is in place.

> 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)


[jira] [Commented] (KNOX-997) call to Shiro Subject logout method get an exception. - Invalid configuration.

2018-02-22 Thread Larry McCay (JIRA)

[ 
https://issues.apache.org/jira/browse/KNOX-997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16373674#comment-16373674
 ] 

Larry McCay commented on KNOX-997:
--

[~jeffreyr97] - ping...

> 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)


[jira] [Commented] (KNOX-997) call to Shiro Subject logout method get an exception. - Invalid configuration.

2018-02-15 Thread Larry McCay (JIRA)

[ 
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)


[jira] [Commented] (KNOX-997) call to Shiro Subject logout method get an exception. - Invalid configuration.

2018-02-15 Thread Jeffrey E Rodriguez (JIRA)

[ 
https://issues.apache.org/jira/browse/KNOX-997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16366419#comment-16366419
 ] 

Jeffrey E  Rodriguez commented on KNOX-997:
---

Hi Larry. Here is the patch.

The fix was to setup Shiro security manager to the SecurityManager accessible 
to the calling code.

[https://shiro.apache.org/static/1.3.2/apidocs/org/apache/shiro/SecurityUtils.html]

It still needs a test to call Shiro Subject logout method.

> 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)


[jira] [Commented] (KNOX-997) call to Shiro Subject logout method get an exception. - Invalid configuration.

2018-02-15 Thread Larry McCay (JIRA)

[ 
https://issues.apache.org/jira/browse/KNOX-997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16366322#comment-16366322
 ] 

Larry McCay commented on KNOX-997:
--

[~jeffreyr97] - we are still waiting on this patch - or have you committed it 
as part of a duplicate JIRA?

> 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
>
>
> 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)


[jira] [Commented] (KNOX-997) call to Shiro Subject logout method get an exception. - Invalid configuration.

2017-09-28 Thread Larry McCay (JIRA)

[ 
https://issues.apache.org/jira/browse/KNOX-997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16185133#comment-16185133
 ] 

Larry McCay commented on KNOX-997:
--

[~jeffreyr97] - do you have a status on this?

> 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
> Fix For: 0.14.0
>
>
> 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
(v6.4.14#64029)


[jira] [Commented] (KNOX-997) call to Shiro Subject logout method get an exception. - Invalid configuration.

2017-08-23 Thread Jeffrey E Rodriguez (JIRA)

[ 
https://issues.apache.org/jira/browse/KNOX-997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16139431#comment-16139431
 ] 

Jeffrey E  Rodriguez commented on KNOX-997:
---

Got some delay. Writing unit test right now

> 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
> Fix For: 0.13.0
>
>
> 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
(v6.4.14#64029)


[jira] [Commented] (KNOX-997) call to Shiro Subject logout method get an exception. - Invalid configuration.

2017-08-17 Thread Jeffrey E Rodriguez (JIRA)

[ 
https://issues.apache.org/jira/browse/KNOX-997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16130678#comment-16130678
 ] 

Jeffrey E  Rodriguez commented on KNOX-997:
---

Application like BigSQL DSM would get this if trying to invalidate session.

I will be adding fix and test today.

> 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
> Fix For: 0.13.0
>
>
> 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
(v6.4.14#64029)