You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2004/01/05 15:54:43 UTC

DO NOT REPLY [Bug 25694] - [PATCH] JSPEngineImplNamedDispatcherInclude incorrectly converts bytes to characters

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25694

[PATCH] JSPEngineImplNamedDispatcherInclude incorrectly converts bytes to characters

unico@hippo.nl changed:

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



------- Additional Comments From unico@hippo.nl  2004-01-05 14:54 -------
I've applied your patch. Thanks! One slight change I made was not to flush the
writer before writing the byte to the output stream because the situation that
both writer and output stream are used during the same response should not
happen, as per servlet spec. Instead, to ensure this I modified the related
MyServletResponse methods to throw IllegalStateExceptions to catch these situations.

I've also fixed the default JSPEngineImpl accordingly.