apply fix from 7.0.0 to trunk
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@866 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
ba847598ac
commit
e87dfd072b
|
@ -21,7 +21,8 @@ jetty-7.0.0.RC6-SNAPSHOT
|
|||
+ 280723 Add non blocking statistics handler
|
||||
+ 283357 org.eclipse.jetty.server.HttpConnectionTest exceptions
|
||||
+ 282543 HttpClient SSL buffer size fix
|
||||
+ 289145 formalize reload policy functionality
|
||||
+ 289146 formalize reload policy functionality
|
||||
+ 289156 jetty-client: no longer throw runtime exception for bad authn details
|
||||
|
||||
jetty-6.1.20 27 August 2009
|
||||
+ JETTY-838 Don't log and throw
|
||||
|
|
|
@ -90,7 +90,10 @@ public class SecurityListener extends HttpEventListenerWrapper
|
|||
|
||||
while ( strtok.hasMoreTokens() )
|
||||
{
|
||||
String[] pair = strtok.nextToken().split( "=" );
|
||||
String token = strtok.nextToken();
|
||||
String[] pair = token.split( "=" );
|
||||
|
||||
// authentication details ought to come in two parts, if not then just skip
|
||||
if ( pair.length == 2 )
|
||||
{
|
||||
String itemName = pair[0].trim();
|
||||
|
@ -99,11 +102,11 @@ public class SecurityListener extends HttpEventListenerWrapper
|
|||
itemValue = StringUtil.unquote( itemValue );
|
||||
|
||||
authenticationDetails.put( itemName, itemValue );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new IllegalArgumentException( "unable to process authentication details" );
|
||||
}
|
||||
Log.debug("SecurityListener: missed scraping authentication details - " + token );
|
||||
}
|
||||
}
|
||||
return authenticationDetails;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue