<div dir="ltr"><span style="font-size:12.8px">Hello,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I found an issue using the MDC. I have a filter that does the following:</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><font face="monospace, monospace">....</font></div><div style="font-size:12.8px"><font face="monospace, monospace">MDC.put("key", value);</font></div><div style="font-size:12.8px"><font face="monospace, monospace">filterChain.doFilter(request, response);</font></div><div style="font-size:12.8px"><font face="monospace, monospace">value = MDC.get("key");</font></div><div style="font-size:12.8px"><font face="monospace, monospace">...</font></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">And the value is empty.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"> The problem comes because a child controller class does:</div><div style="font-size:12.8px"><font face="monospace, monospace"><br></font></div><div style="font-size:12.8px"><font face="monospace, monospace">MDC.put("key2")</font></div><div style="font-size:12.8px"><font face="monospace, monospace">... some logic....</font></div><div style="font-size:12.8px"><font face="monospace, monospace">finally{</font></div><div style="font-size:12.8px"><font face="monospace, monospace">    MDC.clear();</font></div><div style="font-size:12.8px"><font face="monospace, monospace">}</font></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">And that call deletes all the content of the map. The problem is that the child class does not check if the MDC contains something. Of course this could be considered as a bad practice, but this "clear()" method is too risky as it deletes ALL, even the parent keys... </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I found this ticket <span style="font-size:13px;color:rgb(38,50,56);font-family:'Helvetica Neue',arial,sans-serif;line-height:16px">: </span><a rel="nofollow noreferrer" href="http://www.google.com/url?q=http%3A%2F%2Fjira.qos.ch%2Fbrowse%2FLOGBACK-325&sa=D&sntz=1&usg=AFQjCNG_Wg9OkA61aCyECP9CtxecviR4Vg" dir="ltr" target="_blank" style="color:rgb(38,50,56);font-size:13px;font-family:'Helvetica Neue',arial,sans-serif;line-height:16px">http://jira.qos.ch/browse/LOGBACK-325</a> but it seems to be resolved. </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">The version I'm using is the loback-classic 1.1.2</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Let me know if you need more information. Thank you.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Best Regards,</div><div style="font-size:12.8px">Javier</div></div>