You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oltu.apache.org by "Ransom Briggs (JIRA)" <ji...@apache.org> on 2014/03/05 17:48:42 UTC
[jira] [Created] (OLTU-138) Passing "Basic " as Authorization
causes an ArrayIndexOutOfBoundsException
Ransom Briggs created OLTU-138:
----------------------------------
Summary: Passing "Basic " as Authorization causes an ArrayIndexOutOfBoundsException
Key: OLTU-138
URL: https://issues.apache.org/jira/browse/OLTU-138
Project: Apache Oltu
Issue Type: Bug
Components: oauth2-common
Affects Versions: 0.31
Reporter: Ransom Briggs
Priority: Trivial
I wrote some tests around my use of the oltu framework, and when I upgraded to 0.31 I started getting an error when passing "Basic " as the Authorization parameter. This happens because there is no check on how many tokens Authorization is split into. This is very low priority as I cannot imagine this will be hit in production.
String[] tokens = authenticationHeader.split(" ");
// several lines of checking, then array out of bound happens here
if (tokens[1] != null && !"".equals(tokens[1])) {
--
This message was sent by Atlassian JIRA
(v6.2#6252)