[
https://issues.apache.org/jira/browse/KNOX-2070?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16962193#comment-16962193
]
ASF subversion and git services commented on KNOX-2070:
-------------------------------------------------------
Commit b3923f29ddfee3b10ed99097480aefacb3878f04 in knox's branch
refs/heads/master from Kevin Risden
[ https://gitbox.apache.org/repos/asf?p=knox.git;h=b3923f2 ]
KNOX-2070 - SSOCookieFederationFilter NPE (#170)
Signed-off-by: Kevin Risden <[email protected]>
> SSOCookieFederationFilter NPE
> -----------------------------
>
> Key: KNOX-2070
> URL: https://issues.apache.org/jira/browse/KNOX-2070
> Project: Apache Knox
> Issue Type: Bug
> Components: KnoxSSO
> Reporter: Kevin Risden
> Assignee: Kevin Risden
> Priority: Major
> Fix For: 1.4.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> SSOCookieFederationFilter has a NPE when the error message is null. This can
> happen a few different ways if the token is invalid. It prevents the response
> from being sent correctly.
> {code:java}
> ...
> Caused by: java.lang.NullPointerException
> at
> org.apache.knox.gateway.provider.federation.jwt.filter.SSOCookieFederationFilter.handleValidationError(SSOCookieFederationFilter.java:140)
> at
> org.apache.knox.gateway.provider.federation.jwt.filter.AbstractJWTFilter.validateToken(AbstractJWTFilter.java:299)
> at
> org.apache.knox.gateway.provider.federation.jwt.filter.SSOCookieFederationFilter.doFilter(SSOCookieFederationFilter.java:122)
> at
> org.apache.knox.gateway.GatewayFilter$Holder.doFilter(GatewayFilter.java:349)
> at
> org.apache.knox.gateway.GatewayFilter$Chain.doFilter(GatewayFilter.java:263)
> at
> com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:209)
> at
> com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:244)
> at
> org.apache.knox.gateway.GatewayFilter$Holder.doFilter(GatewayFilter.java:349)
> at
> org.apache.knox.gateway.GatewayFilter$Chain.doFilter(GatewayFilter.java:263)
> at
> org.apache.knox.gateway.filter.XForwardedHeaderFilter.doFilter(XForwardedHeaderFilter.java:50)
> at
> org.apache.knox.gateway.filter.AbstractGatewayFilter.doFilter(AbstractGatewayFilter.java:58)
> ... 52 more
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)