You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2015/02/10 10:51:34 UTC

[jira] [Commented] (CXF-6248) NPE at OAuthRequestFilter when no Authorization header found

    [ https://issues.apache.org/jira/browse/CXF-6248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14313921#comment-14313921 ] 

Sergey Beryozkin commented on CXF-6248:
---------------------------------------

Thanks for spotting it, has already been fixed, see
https://issues.apache.org/jira/browse/CXF-6153

> NPE at OAuthRequestFilter when no Authorization header found
> ------------------------------------------------------------
>
>                 Key: CXF-6248
>                 URL: https://issues.apache.org/jira/browse/CXF-6248
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS Security
>    Affects Versions: 3.0.3
>            Reporter: Eneko Fernández
>            Priority: Minor
>
> Hi, 
> When trying the filter with a message without Authorization header the NullPointerException comes up.
> java.lang.NullPointerException: null
>    at org.apache.cxf.rs.security.oauth2.utils.AuthorizationUtils.getAuthorizationParts(AuthorizationUtils.java:76) ~[cxf-rt-rs-security-oauth2-3.0.3.jar:3.0.3]
>    at org.apache.cxf.rs.security.oauth2.utils.AuthorizationUtils.getAuthorizationParts(AuthorizationUtils.java:69) ~[cxf-rt-rs-security-oauth2-3.0.3.jar:3.0.3]
>    at org.apache.cxf.rs.security.oauth2.filters.OAuthRequestFilter.getAuthorizationParts(OAuthRequestFilter.java:227) ~[cxf-rt-rs-security-oauth2-3.0.3.jar:3.0.3]
>    at org.apache.cxf.rs.security.oauth2.filters.OAuthRequestFilter.validateRequest(OAuthRequestFilter.java:83) ~[cxf-rt-rs-security-oauth2-3.0.3.jar:3.0.3]
>  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)