You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Hans Bergsten <ha...@gefionsoftware.com> on 1999/06/02 07:32:27 UTC

mod_jserv/4513: SSI servlet can not set headers

>Number:         4513
>Category:       mod_jserv
>Synopsis:       SSI servlet can not set headers
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    jserv
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Tue Jun  1 22:40:00 PDT 1999
>Last-Modified:
>Originator:     hans@gefionsoftware.com
>Organization:
apache
>Release:        Apache 1.3.6, JServ 1.0b5, JServ 1.0
>Environment:
Windows NT 4.0 SP 3
>Description:
This problem was reported against JServ 0.9.11/Apache 1.3.0 but is still a
problem in Apache 1.3.6, JServ 1.0b5, JServ 1.0, see PR #2591 for details.

Briefly the problem is that since headers are sent as soon as the first
byte is written to the output stream, it's impossible to set any headers
from a servlet invoked through a SERVLET tag (since JServSSI has already
sent some bytes).
>How-To-Repeat:
See PR #2591
>Fix:
The problem can either be corrected in JServOutputStream as described in
PR #2591, or by buffering the output in JServSSI.
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or      ]
["Re: general/1098:").  If the subject doesn't match this       ]
[pattern, your message will be misfiled and ignored.  The       ]
["apbugs" address is not added to the Cc line of messages from  ]
[the database automatically because of the potential for mail   ]
[loops.  If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request from a  ]
[developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]