https://issues.apache.org/bugzilla/show_bug.cgi?id=44494


Suzuki Yuichiro <[EMAIL PROTECTED]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |ASSIGNED




--- Comment #21 from Suzuki Yuichiro <[EMAIL PROTECTED]>  2008-03-22 09:54:44 
PST ---
(In reply to comment #16)

I tested some cases with http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk
at r639909 (that includes 639891) of course without my patch.

I attached a WAR,
that is not a practicable application, but for test.

It includes multibyte UTF-8 characters,
I'm worry about it might not work correctly in your environment.

/index.jsp : using 3 bytes characters


The results I tested:
 read(): expected 24587
    Sometimes, more/less length occurs.
 read(char[1]): expected 8203
    Sometimes, more/less length occurs.
 readLine(): expected 8203
    Sometimes, more/less length occurs,
    or sometimes following exception occurs.

 java.io.IOException
  at org.apache.catalina.connector.InputBuffer.reset(InputBuffer.java:456)
  at org.apache.catalina.connector.CoyoteReader.reset(CoyoteReader.java:134)
  at org.apache.catalina.connector.CoyoteReader.readLine(CoyoteReader.java:191)
  at org.apache.jsp.readLine_jsp._jspService(readLine_jsp.java:60)
 ...

That's very rare when the browser is on the same machine with tomcat.
But if the browser is on another machine that occurs more easily. 

I just guess those behavior may depend on the internal buffer state
and the buffer of SocketInputStream might be related.
(the next data arrived or not?)


These tests are passed with my patch in my environment.
Does the attached patch (at least for tomcat6.x) not work?


(In reply to comment #18)
I have not tried yet. 
I think it is needed at least that the read(char[], int, int) method of
underlying-wrapped BufferedReader work correctly.
Which revision is suitable for the Filter?

All of Tomcat6.0.16, Tomcat6.0.16+r631700(see Comment #4 1.),
and r639891(above-mentioned) seems working incorrectly.
Are they problems of my environment?


-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to