[
https://issues.apache.org/jira/browse/ISIS-3174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17584363#comment-17584363
]
ASF subversion and git services commented on ISIS-3174:
-------------------------------------------------------
Commit 6c678a7dc5c1f3f62dfe9374dbc385ea12950172 in isis's branch
refs/heads/master from Andi Huber
[ https://gitbox.apache.org/repos/asf?p=isis.git;h=6c678a7dc5 ]
ISIS-3174: fixes potential NPE on Wicket Session Recovery
> [Regression] NPE on Wicket Session Recovery
> -------------------------------------------
>
> Key: ISIS-3174
> URL: https://issues.apache.org/jira/browse/ISIS-3174
> Project: Isis
> Issue Type: Bug
> Components: Isis Viewer Wicket
> Reporter: Andi Huber
> Assignee: Andi Huber
> Priority: Major
> Fix For: 2.0.0-M8
>
>
> Caused by: java.lang.NullPointerException: Cannot invoke
> "org.apache.isis.applib.services.iactnlayer.InteractionContext.getUser()"
> because the return value of
> "org.apache.isis.viewer.wicket.viewer.integration.AuthenticatedWebSessionForIsis.getAuthentication()"
> is null
> at
> org.apache.isis.viewer.wicket.viewer.integration.AuthenticatedWebSessionForIsis.getRoles(AuthenticatedWebSessionForIsis.java:221)
> ~[classes/:?]
> at
> org.apache.wicket.authroles.authentication.AuthenticatedWebApplication.hasAnyRole(AuthenticatedWebApplication.java:58)
> ~[wicket-auth-roles-9.11.0.jar:9.11.0]
> at
> org.apache.wicket.authroles.authorization.strategies.role.AbstractRoleAuthorizationStrategy.hasAny(AbstractRoleAuthorizationStrategy.java:60)
> ~[wicket-auth-roles-9.11.0.jar:9.11.0]
> at
> org.apache.wicket.authroles.authorization.strategies.role.annotations.AnnotationsRoleAuthorizationStrategy.check(AnnotationsRoleAuthorizationStrategy.java:111)
> ~[wicket-auth-roles-9.11.0.jar:9.11.0]
> at
> org.apache.wicket.authroles.authorization.strategies.role.annotations.AnnotationsRoleAuthorizationStrategy.isInstantiationAuthorized(AnnotationsRoleAuthorizationStrategy.java:61)
> ~[wicket-auth-roles-9.11.0.jar:9.11.0]
> at
> org.apache.wicket.authorization.strategies.CompoundAuthorizationStrategy.isInstantiationAuthorized(CompoundAuthorizationStrategy.java:65)
> ~[wicket-core-9.11.0.jar:9.11.0]
> at
> org.apache.wicket.Application$1.onInstantiation(Application.java:262)
> ~[wicket-core-9.11.0.jar:9.11.0]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)