tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Louis MONTEIRO (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (TOMEE-2513) Principal proxy handler fails when not authenticated
Date Fri, 03 May 2019 08:03:00 GMT

     [ https://issues.apache.org/jira/browse/TOMEE-2513?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jean-Louis MONTEIRO resolved TOMEE-2513.
----------------------------------------
       Resolution: Fixed
         Assignee: Jean-Louis MONTEIRO
    Fix Version/s: 8.0.0-Final
                   8.0.0-M3

> Principal proxy handler fails when not authenticated
> ----------------------------------------------------
>
>                 Key: TOMEE-2513
>                 URL: https://issues.apache.org/jira/browse/TOMEE-2513
>             Project: TomEE
>          Issue Type: Bug
>    Affects Versions: 8.0.0-M2
>            Reporter: Jean-Louis MONTEIRO
>            Assignee: Jean-Louis MONTEIRO
>            Priority: Major
>             Fix For: 8.0.0-M3, 8.0.0-Final
>
>
> When current request is not authenticated, the Proxy handler for Principal fails with
a NullPointerException. We should check if doGetPrincipal is null and return null straight
instead of trying to invoke the target method on a null object.
>  
> Caused by: java.lang.NullPointerException
>  at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source)
>  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at java.lang.reflect.Method.invoke(Method.java:498)
>  at org.apache.openejb.cdi.ManagedSecurityService$1.invoke(ManagedSecurityService.java:83)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message