Add Servlet filter to cleanup MDC context
authorlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 16 Mar 2010 07:06:03 +0000 (07:06 +0000)
committerlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 16 Mar 2010 07:06:03 +0000 (07:06 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/branches/REL_2@2922 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

doc/RELEASE-NOTES.txt
src/main/webapp/WEB-INF/web.xml

index 1a731d5..2243f00 100644 (file)
@@ -1,5 +1,6 @@
 Changes in Release 2.2.0
 =============================================
+[SIDP-373] - The SLF4J MDC state is not being properly cleared when request processing is done.
 [SIDP-368] - Provide more acurate login error to servlet when Username/Password login authentication has failed.
 [SIDP-365] - Expose uptime of IdP web application with status handler
 [SIDP-362] - Only log exception message without stack trace for expired SAML messages
index ee8df5a..6f9f645 100644 (file)
         <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
     </listener>
 
+    <!--  Add IdP SLF4J MDC cleanup filter to all requests -->
+    <filter>
+        <filter-name>SL4JCleanupFilter</filter-name>
+        <filter-class>edu.internet2.middleware.shibboleth.common.log.SLF4JMDCCleanupFilter</filter-class>
+    </filter>
+    <filter-mapping>
+        <filter-name>SL4JCleanupFilter</filter-name>
+        <url-pattern>/*</url-pattern>
+    </filter-mapping>
+
+
     <!--  Add IdP Session object to incoming profile requests -->
     <filter>
         <filter-name>IdPSessionFilter</filter-name>
         <filter-class>edu.internet2.middleware.shibboleth.idp.session.IdPSessionFilter</filter-class>
     </filter>
-    
     <filter-mapping>
         <filter-name>IdPSessionFilter</filter-name>
         <url-pattern>/*</url-pattern>