Community
Participate
Working Groups
Originally reported as http://jira.codehaus.org/browse/JETTY-1407 by Miguel Paraz (mparaz@gmail.com) org.eclipse.jetty.security.authentication.BasicAuthenticator.validateRequest() has the lines: credentials = credentials.substring(credentials.indexOf(' ')+1); credentials = B64Code.decode(credentials,StringUtil.__ISO_8859_1); This assumes HTTP Basic authentication. The code should first check if credentials is equal to "Basic". The result is an IllegalArgumentException: Not B64 encoded
Miguel, I am able to run SecuredHelloHandler (http://goo.gl/8jlhB) that is an example embedded Jetty application that uses BasicAuthenticator without any problems. Therefore it is possible that there is an issue with your configuration. If you could please post either your jetty configuration file(s) or a sample application that exhibits the problem, it would assist us in figuring it out. -Michael
fixed for 7.5.2 turns out our tests were bad and not sending "Basic " before the B64 thanks
oops forgot to change state.