[
https://issues.apache.org/jira/browse/KNOX-966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16047625#comment-16047625
]
Rob Vesse commented on KNOX-966:
--------------------------------
This is specific to using Shiro authentication provider. We discovered this
because one of our developers was trying to configure Knox on a system and was
having trouble with LDAP so he commented out the configuration rule that
actually enabled authentication that led to the NPE.
The actual root problem was that LDAP itself was not running properly on the
system but because of the NPE the developer in question assumed it was a Knox
problem and spent time chasing the wrong issue.
> NPE when Shiro is misconfigured
> -------------------------------
>
> Key: KNOX-966
> URL: https://issues.apache.org/jira/browse/KNOX-966
> Project: Apache Knox
> Issue Type: Improvement
> Components: Server
> Affects Versions: 0.12.0
> Reporter: Rob Vesse
> Assignee: Rob Vesse
> Fix For: 0.13.0
>
> Attachments: KNOX-966.patch
>
>
> When Shiro provider is used if the user doesn't enable authentication or
> enables anonymous authentication then Knox will hit an NPE because it
> assumes the Shiro Subject is populated. This commit adds a check and
> adds a specific error message which indicates that there is a problem and
> what configuration to check
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)