[jboss-jira] [JBoss JIRA] Resolved: (JBPORTAL-2178) NPE when requesting dashboard as unauthenticated user

Thomas Heute (JIRA) jira-events at lists.jboss.org
Tue Oct 7 06:26:20 EDT 2008


     [ https://jira.jboss.org/jira/browse/JBPORTAL-2178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Heute resolved JBPORTAL-2178.
------------------------------------

    Fix Version/s: 2.7.0 Final
       Resolution: Done


So I "fixed" this by returning a 500 Server error "No authenticated user" instead of a nasty NPE

> NPE when requesting dashboard as unauthenticated user
> -----------------------------------------------------
>
>                 Key: JBPORTAL-2178
>                 URL: https://jira.jboss.org/jira/browse/JBPORTAL-2178
>             Project: JBoss Portal
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Portal Core
>    Affects Versions: 2.6.6 Final
>            Reporter: Martin Putz
>            Assignee: Thomas Heute
>             Fix For: 2.6.7 Final, 2.7.0 Final
>
>
> As a user who is not logged when I type into my browser the url
> <host:port>/portal/dashboard
> or
> <host:port>/portal/dashboard/<something>
> I get a HTTP 500 and a stacktrace with a NullPointerException
> and in the server log the message
> 2008-09-25 17:36:17,048 ERROR [org.jboss.portal.server.servlet.PortalServlet] Unexpected exception
> java.lang.NullPointerException
> at org.jboss.portal.core.model.portal.command.view.ViewContextCommand.execute(ViewContextCommand.java:62)
> at org.jboss.portal.core.controller.ControllerCommand$1.invoke(ControllerCommand.java:68)
> at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
> at org.jboss.portal.core.aspects.controller.node.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:123)
> at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
> at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
> at org.jboss.portal.core.aspects.controller.PageCustomizerInterceptor.invoke(PageCustomizerInterceptor.java:134)
> at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
> at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
> at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:78)
> .....

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list