You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/09/10 12:14:00 UTC
[jira] [Commented] (KNOX-2651) NPE when token value is missing
[ https://issues.apache.org/jira/browse/KNOX-2651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17413145#comment-17413145 ]
ASF subversion and git services commented on KNOX-2651:
-------------------------------------------------------
Commit a0cb4e9083b79abf0fb88af8545d7f6b76f1c88d in knox's branch refs/heads/master from Attila Magyar
[ https://gitbox.apache.org/repos/asf?p=knox.git;h=a0cb4e9 ]
KNOX-2651 - NPE when token value is missing (#487)
> NPE when token value is missing
> -------------------------------
>
> Key: KNOX-2651
> URL: https://issues.apache.org/jira/browse/KNOX-2651
> Project: Apache Knox
> Issue Type: Task
> Reporter: Attila Magyar
> Assignee: Attila Magyar
> Priority: Major
> Time Spent: 1h 40m
> Remaining Estimate: 0h
>
> This happens when one accidentally puts a space between the user and password.
> {code:java}
> $ curl -vvv -iku Token: xxxxxxx https://localhost:8443/gateway/sandbox/webhdfs/v1/?op=LISTSTATUS {code}
>
> {code:java}
> Caused by: java.lang.NullPointerException
> at com.nimbusds.jose.JOSEObject.split(JOSEObject.java:214)
> at com.nimbusds.jwt.SignedJWT.parse(SignedJWT.java:110)
> at org.apache.knox.gateway.services.security.token.impl.JWTToken.<init>(JWTToken.java:55)
> at org.apache.knox.gateway.provider.federation.jwt.filter.JWTFederationFilter.doFilter(JWTFederationFilter.java:135)
> at org.apache.knox.gateway.GatewayFilter$Holder.doFilter(GatewayFilter.java:348)
> at org.apache.knox.gateway.GatewayFilter$Chain.doFilter(GatewayFilter.java:262)
> at org.apache.knox.gateway.filter.XForwardedHeaderFilter.doFilter(XForwardedHeaderFilter.java:50)
> at org.apache.knox.gateway.filter.AbstractGatewayFilter.doFilter(AbstractGatewayFilter.java:58)
> ... 54 more {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)