Bill Medland

Show:

What's happening?

  • NullPointerException on WWW-Authenticate with no realm entry

    If the server responds with a WWW-Authenticate header that does not contain a realm property then WebClient.getCredentialsForRealm throws a NullPointerException whereas I would expect it to return a null PasswordAuthentication reference.

    2009-06-09 16:49:25 UTC in httpunit

  • Preventing automatic authorization handling

    Is there a way to prevent HttpUnit from trying to handle authorization itself? I have a unit test that is supposed to return an Unauthorized response with an unusual WWW-Authenticate that HttpUnit cannot possibly handle. I want the response to come all the way back to the test code to handle. Currently the system throws a NullPointerException in getCredentialsForRealm (no surprise!). I...

    2009-06-09 01:19:56 UTC in httpunit

About Me

  • 2006-03-22 (4 years ago)
  • 1482663
  • bill_medland (My Site)
  • Bill Medland

Send me a message