414235 - RequestLogHandler configured on a context fails to handle forwarded requests

This commit is contained in:
Jan Bartel 2013-08-05 12:32:21 +10:00
parent 79ac8ad22d
commit f5fb412eba
2 changed files with 21 additions and 18 deletions

View File

@ -68,6 +68,8 @@ public class RequestLogHandler extends HandlerWrapper
super.handle(target, baseRequest, request, response);
}
finally
{
if (_requestLog != null && baseRequest.getDispatcherType().equals(DispatcherType.REQUEST))
{
if (continuation.isAsync())
{
@ -90,6 +92,7 @@ public class RequestLogHandler extends HandlerWrapper
_requestLog.log(baseRequest, (Response)response);
}
}
}
/* ------------------------------------------------------------ */
public void setRequestLog(RequestLog requestLog)

View File

@ -99,7 +99,7 @@
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>7.5.2-SNAPSHOT</version>
<version>${project.version}</version>
<configuration>
<stopPort>8087</stopPort>
<stopKey>foo</stopKey>