tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47972] New: Valve invoke wrapper response problem
Date Fri, 09 Oct 2009 13:10:55 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=47972

           Summary: Valve invoke wrapper response problem
           Product: Tomcat 6
           Version: 6.0.18
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: apache@wardbrook.com


If you try creating a valve that wraps the response object and pass your
response wrapper to the invoke call, eg

getNext().invoke(request, wrappedResponse);

it will be ignored. The invoke method appears to use the response object stored
within the request object instead of using the (2nd) response parameter in the
invoke call.

In order to get my wrapper to be used, I had to add the following

request.setResponse(wrappedResponse);

before calling the invoke method eg

request.setResponse(wrappedResponse);
getNext().invoke(request, wrappedResponse);

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message