tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 51038] New: No access logs for Servlet 3.0 async requests
Date Thu, 07 Apr 2011 15:18:34 GMT

           Summary: No access logs for Servlet 3.0 async requests
           Product: Tomcat 7
           Version: 7.0.11
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina

Access logs written by org.apache.catalina.valves.AccessLogValve are not being
written for servlet 3.0 async requests.

To reproduce:
- Handle a request asynchronously by marking the servlet with
- Send some traffic and notice that nothing is being written to the access

AccessLogValve.log() is called by org.apache.catalina.Context.logAccess().
>From the source for version 7.0.11, in, line 416:

            AsyncContextImpl asyncConImpl =
            if (asyncConImpl != null) {
                async = true;
            } else if (!comet) {
                if (postParseSuccess) {
                    // Log only if processing was invoked.
                    // If postParseRequest() failed, it has already logged it.
                    ((Context) request.getMappingData().context).logAccess(
                            request, response,
                            System.currentTimeMillis() - req.getStartTime(),
                req.action(ActionCode.POST_REQUEST , null);

In the async case logAccess() isn't called here. I've searched through the code
and don't see logAccess() being called anywhere else, except in error cases.
So, it looks like the async case is missing a call to logAccess() somewhere.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message