You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2006/07/17 14:37:05 UTC

DO NOT REPLY [Bug 40056] New: - added httpHeader after invoking chain.doFilter(..) gets lost by chunked transfer

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40056>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40056

           Summary: added httpHeader after invoking chain.doFilter(..) gets
                    lost by chunked transfer
           Product: Tomcat 5
           Version: 5.5.7
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P4
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: fellebomp@gmx.de


Normally, an added http-header AFTER the call "chain.doFilter(request, response)
" is not transmitted to the client if a servlet or subsequent filter closes the 
output stream. 
It IS transmitted, if the filter closes the stream itself using a wrapper 
perventing subsequent filters or the servlet from closing the  stream.

If the entity size increases above the max. HTTP-Package size the container 
automatically adds the header "transfer-encoding:chunked" and removes the 
"content-size" header.
In this case any header added AFTER the call "chain.doFilter(request, response)" 
is NOT transmitted any more.

{
            chain.doFilter(request, wrappedResponse);
            
            wrappedResponse.addHeader("Test-Header","not transmitted if 
chunked");
            
            // close Stream (call override-method of wrapper for ".close()")
            wrappedResponse.closeOutputStream();
}

soo many words 4 discribing a tiny bug...

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

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


DO NOT REPLY [Bug 40056] - added httpHeader after invoking chain.doFilter(..) gets lost by chunked transfer

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40056>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40056


suresha4@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|tomcat-                     |suresha4@gmail.com
                   |dev@jakarta.apache.org      |
             Status|NEW                         |ASSIGNED




------- Additional Comments From suresha4@gmail.com  2007-05-16 03:01 -------
Created an attachment (id=20204)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=20204&action=view)
about my product


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

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


DO NOT REPLY [Bug 40056] - added httpHeader after invoking chain.doFilter(..) gets lost by chunked transfer

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40056>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40056


markt@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|suresha4@gmail.com          |tomcat-
                   |                            |dev@jakarta.apache.org
                URL|http://localhost:8888/Agasth|
                   |a11/                        |
             Status|ASSIGNED                    |NEW
            Summary|nothing                     |added httpHeader after
                   |                            |invoking chain.doFilter(..)
                   |                            |gets lost by chunked
                   |                            |transfer




------- Additional Comments From markt@apache.org  2007-05-30 18:51 -------
Fix edits by spammer

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

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


DO NOT REPLY [Bug 40056] - added httpHeader after invoking chain.doFilter(..) gets lost by chunked transfer

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40056>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40056


markt@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From markt@apache.org  2007-05-30 18:53 -------
This behaviour seems entirely as expected. If I am missing something in the
spec, please re-open and point me to the appropriate spec section.

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

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