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

Gaetan Boismal
03.49.2016 3b15a98cb11aa68f681fa7ba0dd793cb56ba02d9
refs
author Gaetan Boismal <gaetan.boismal@forgerock.com>
Friday, June 3, 2016 15:49 +0200
committer Gaetan Boismal <gaetan.boismal@forgerock.com>
Wednesday, June 8, 2016 17:18 +0200
commit3b15a98cb11aa68f681fa7ba0dd793cb56ba02d9
tree 71ac5144ab8f835be83238849dedef1fce28b5a8 tree | zip | gz
parent 32edddb11bcc204628fbdaddf3b0d0e86530f6f8 view | diff
OPENDJ-2955 Add logs to rest2ldap gateway

Logs internal server error response as error using a CHF Filter.
Split the HttpLogFilter in two parts:
* One HttpAccessLogFilter which only logs response status in the http access log.
* One ErrorLoggerFilter moved in opendj-rest2ldap module which performs internal server error logs.
This filter also catch and logs runtime exceptions and then convert them in an internal server error response.
Also adds trace logs of Ldap requests and responses performed by rest2ldap.
For tomcat support, provides a logging.properties file in the servlet module in order to isolate rest2ldap logs out of the box (logs will go in ${catalina.base}/logs/rest2ldap.yyyy-MM-dd.log file)
This file does not alter Jetty logs. By default with Jetty, rest2ldap logs will be mixed with other logs (OOTB they are display in the console).
6 files modified
2 files added
1 files renamed
189 ■■■■ changed files
opendj-rest2ldap-servlet/pom.xml 5 ●●●●● diff | view | raw | blame | history
opendj-rest2ldap-servlet/src/main/webapp/WEB-INF/classes/logging.properties 13 ●●●●● diff | view | raw | blame | history
opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/ErrorLoggerFilter.java 69 ●●●●● diff | view | raw | blame | history
opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/LDAPCollectionResourceProvider.java 16 ●●●● diff | view | raw | blame | history
opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/Rest2LDAPHttpApplication.java 13 ●●●● diff | view | raw | blame | history
opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/authz/CachedReadConnectionDecorator.java 38 ●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/protocols/http/HTTPConnectionHandler.java 4 ●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/protocols/http/HttpAccessLogFilter.java 30 ●●●● diff | view | raw | blame | history
pom.xml 1 ●●●● diff | view | raw | blame | history