Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6248

NPE at OAuthRequestFilter when no Authorization header found

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 3.0.3
    • 3.0.4, 3.1
    • JAX-RS Security
    • None
    • Novice

    Description

      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]

      Attachments

        Issue Links

          Activity

            People

              sergey_beryozkin Sergey Beryozkin
              eneko Eneko Fernández
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: