mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
16.57.2013 ad85152c76d37c2a455debd815e239d2ca812c78
refs
author Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Tuesday, April 16, 2013 15:57 +0200
committer Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Tuesday, April 16, 2013 15:57 +0200
commitad85152c76d37c2a455debd815e239d2ca812c78
tree 600eff306504d136051cb160829f475e093ff2b5 tree | zip | gz
parent 6b2141405094a1bbe9c133092244bf6f54a30b72 view | diff
OPENDJ-830 (CR-1554) Implement authentication and authorization for HTTP connection handler


Improved error reporting to the client: Internal exceptions are now returned to the client as such.
This simplified the error handling code.


CollectClientConnectionsFilter.java:
Renamed sendUnauthorizedResponseWithHTTPBasicAuthChallenge() to sendErrorResponse().
Extracted more generic method toJSON() from sendErrorResponse().
Removed several try / catch + logging and replaced them with throwing the exception up.

HTTPClientConnection.java:
A connection is now valid by default (doh!)

CollectClientConnectionsFilterTest.java:
Updated the tests.
3 files modified
138 ■■■■■ changed files
opends/src/server/org/opends/server/protocols/http/CollectClientConnectionsFilter.java 110 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/protocols/http/HTTPClientConnection.java 2 ●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/http/CollectClientConnectionsFilterTest.java 26 ●●●●● diff | view | raw | blame | history