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

ASF subversion and git services commented on KNOX-3343:
-------------------------------------------------------

Commit 344c393efe5e77814a685b346737c86dc41d494c in knox's branch 
refs/heads/master from Sandor Molnar
[ https://gitbox.apache.org/repos/asf?p=knox.git;h=344c393ef ]

KNOX-3343: Fix NPE when cacheKeyHeader is not found in the request (#1254)

> NPE in RemoteAuthFilter
> -----------------------
>
>                 Key: KNOX-3343
>                 URL: https://issues.apache.org/jira/browse/KNOX-3343
>             Project: Apache Knox
>          Issue Type: Bug
>          Components: Server
>    Affects Versions: 3.0.0
>            Reporter: Sandor Molnar
>            Assignee: Sandor Molnar
>            Priority: Major
>             Fix For: 3.0.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Checking the Docker-based integration test logs, I found the following stack 
> trace re-occurring:
> {code:java}
> Caused by: java.lang.NullPointerException: Cannot invoke "String.hashCode()" 
> because "key" is null
>     at 
> org.apache.knox.gateway.filter.RemoteAuthFilter.hashCacheKey(RemoteAuthFilter.java:364)
>  ~[gateway-provider-security-authc-remote-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
>     at 
> org.apache.knox.gateway.filter.RemoteAuthFilter.doFilter(RemoteAuthFilter.java:225)
>  ~[gateway-provider-security-authc-remote-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
>     at 
> org.apache.knox.gateway.GatewayFilter$Holder.doFilter(GatewayFilter.java:391) 
> ~[gateway-server-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
>     at 
> org.apache.knox.gateway.GatewayFilter$Chain.doFilter(GatewayFilter.java:305) 
> ~[gateway-server-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
>     at 
> org.apache.knox.gateway.filter.XForwardedHeaderFilter.doFilter(XForwardedHeaderFilter.java:50)
>  ~[gateway-server-xforwarded-filter-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
>     at 
> org.apache.knox.gateway.filter.AbstractGatewayFilter.doFilter(AbstractGatewayFilter.java:59)
>  ~[gateway-spi-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT] {code}
> This needs to be fixed.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to