Move 'Execute post-request interceptors' into finally block, formerly it's skipped on Error's

This commit is contained in:
Travis Burtrum 2019-01-08 11:10:59 -05:00
parent 2ea7dd2b83
commit 55573244f3

View File

@ -869,25 +869,25 @@ public class PageFlowRequestProcessor
_servletContainerAdapter.endRequest( request, response );
long timeTaken = System.currentTimeMillis() - startTime;
er.endActionRequest( requestContext, timeTaken );
}
//
// Execute post-request interceptors
//
try
{
Interceptors.doPostIntercept( context, interceptors );
}
catch ( InterceptorException e )
{
ServletUtils.throwServletException(e);
}
//
// Execute post-request interceptors
//
try
{
Interceptors.doPostIntercept( context, interceptors );
}
catch ( InterceptorException e )
{
ServletUtils.throwServletException(e);
}
if ( LOG.isTraceEnabled() )
{
LOG.trace( "-------------------------------- End Request #" +
localRequestCount +
" ------------------------------------" );
if ( LOG.isTraceEnabled() )
{
LOG.trace( "-------------------------------- End Request #" +
localRequestCount +
" ------------------------------------" );
}
}
}