You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Jean-Louis MONTEIRO (JIRA)" <ji...@apache.org> on 2019/05/03 08:03:00 UTC

[jira] [Resolved] (TOMEE-2514) MP-JWT ClaimBean fails if claim not found

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

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

> MP-JWT ClaimBean fails if claim not found
> -----------------------------------------
>
>                 Key: TOMEE-2514
>                 URL: https://issues.apache.org/jira/browse/TOMEE-2514
>             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
>
>
> The MP-JWT ClaimBean implementation fails with a null pointer exception if claim can't be found.
> try {
>  final Class<?> type = (Class<?>) ip.getType();
>  final String claimValue = getClaimValue(key).toString();
>  return (T) PropertyEditors.getValue(type, claimValue);
> } catch (Exception e) {
>  logger.warning(e.getMessage());
> }
>  
> We should check the getClaimValue(key) value before calling toString on it.
>  



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