DO NOT REPLY [Bug 28331] - Unpredictable switch from UTF-8 to other encoding in Response

2004-10-14 Thread bugzilla
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=28331.
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=28331

Unpredictable switch from UTF-8 to other encoding in Response





--- Additional Comments From [EMAIL PROTECTED]  2004-10-14 18:32 ---
Created an attachment (id=13092)
Test WAR which can trigger this error

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 28331] - Unpredictable switch from UTF-8 to other encoding in Response

2004-10-14 Thread bugzilla
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=28331.
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=28331

Unpredictable switch from UTF-8 to other encoding in Response





--- Additional Comments From [EMAIL PROTECTED]  2004-10-14 18:33 ---
Created an attachment (id=13093)
Screenshot of good execution of testweb application

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 28331] - Unpredictable switch from UTF-8 to other encoding in Response

2004-10-14 Thread bugzilla
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=28331.
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=28331

Unpredictable switch from UTF-8 to other encoding in Response





--- Additional Comments From [EMAIL PROTECTED]  2004-10-14 18:35 ---
Created an attachment (id=13094)
Screenshot of bad execution of testweb application

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 28331] - Unpredictable switch from UTF-8 to other encoding in Response

2004-10-14 Thread bugzilla
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=28331.
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=28331

Unpredictable switch from UTF-8 to other encoding in Response

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 OS/Version|Windows NT/2K   |All
 Resolution|INVALID |
Version|5.0.16  |Unknown



--- Additional Comments From [EMAIL PROTECTED]  2004-10-14 18:42 ---
I have attached three files which could help track this problem. There is simple
web application which one JSP page and servlet which generates simple picture.
Other two files are screenshots which demonstrate the problem.

To trigger this bug you have to run this app and refresh a couple of times JSP
page in Mozilla (or other browser). From time to time national letters will be
wrongly encoded (ISO-8859-1 instead of UTF-8). It is hard to tell how many times
you have to refresh the page for this error to occur, but eventually it will.

This error I encountered on Linux system (Fedora Core 1 and 2), with JDK 1.4.2
and JDK 5.0 and on any version of Tomcat 5 I have tested (even the new ones).

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 28331] - Unpredictable switch from UTF-8 to other encoding in Response

2004-10-14 Thread bugzilla
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=28331.
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=28331

Unpredictable switch from UTF-8 to other encoding in Response

[EMAIL PROTECTED] changed:

   What|Removed |Added

   Severity|Critical|Minor



--- Additional Comments From [EMAIL PROTECTED]  2004-10-14 19:00 ---
Right. And, unsurprisingly, this is a so specific case it is ridiculous. I
wonder what is causing this at this time, but all I know is that the evaluation
is going to cost me to spend a lot of time, and in the end isn't going to be
pretty for your issue.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 28331] - Unpredictable switch from UTF-8 to other encoding in Response

2004-10-14 Thread bugzilla
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=28331.
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=28331

Unpredictable switch from UTF-8 to other encoding in Response

[EMAIL PROTECTED] changed:

   What|Removed |Added

   Severity|Minor   |Normal
 Status|REOPENED|RESOLVED
 Resolution||INVALID



--- Additional Comments From [EMAIL PROTECTED]  2004-10-14 19:17 ---
Actually, I'm stupid, it's trivial, because I've already seen the bug. The
problem is that your Java2D stuff you're using has some threading weirdness. So
it accesses slightly asynchronously the response object, causing it to become
committed during the start of the processing of the next request. The issue
occurs when there are problems with the connection (IOE during rapid requests
from client disconnects). So you have a bad servlet, and your bug is INVALID.

Two solutions:
a) Write to a buffer first (ie, if something bad happens, no harm done, since
Java2D won't have any Tomcat object to mess with).
b) Run the security manager (so that the facade objects get discarded to protect
the integrity and isolation of requests). This will cause NPEs to be thrown
during each invalid access.

See, I told you it wouldn't be pretty for your issue ;)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 28331] - Unpredictable switch from UTF-8 to other encoding in Response

2004-04-10 Thread bugzilla
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=28331.
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=28331

Unpredictable switch from UTF-8 to other encoding in Response

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID



--- Additional Comments From [EMAIL PROTECTED]  2004-04-10 16:04 ---
- Try a newer release
- If you are certain there's a bug, submit a ready to run test webapp (with a
simple JSP) demonstrating the problem

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]