You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oltu.apache.org by "Stein Welberg (JIRA)" <ji...@apache.org> on 2014/03/06 11:22:49 UTC
[jira] [Resolved] (OLTU-138) Passing "Basic " as Authorization
causes an ArrayIndexOutOfBoundsException
[ https://issues.apache.org/jira/browse/OLTU-138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stein Welberg resolved OLTU-138.
--------------------------------
Resolution: Fixed
> 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)