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 2008/06/16 19:58:31 UTC

DO NOT REPLY [Bug 45215] New: Request reader returns length zero

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

           Summary: Request reader returns length zero
           Product: Tomcat 5
           Version: 5.5.26
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Connector:Coyote
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: douglm@rpi.edu


Experienced as ArrayIndexOutOfBounds exceptions in Xerces

Due to the Reader returning a length of zero which should never occur unless
the input length parameetr is zero (which it isn').

A CalDAV REPORT request of 31k+ bytes produces the error.

Debugged it down through the CharChunk.subtract method called with off=1 and
len=2047.

The fields start and end both equal 8192.

In this code 

        if ((end - start) == 0) {
            if (in == null)
                return -1;
            int n = in.realReadChars( buff, end, buff.length - end);
            if (n < 0)
                return -1;
        }

        int n = len;
        if (len > getLength()) {
            n = getLength();
        }

buf.length - end = 0, so we call realReadChars with len = 0
And then n = getLength() sets n to zero.

Difficult to attach any test case as it involves debugging a whole system
Possibly a large POST would reveal the problem.


-- 
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 45215] Request reader returns length zero

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45215


Mark Thomas <ma...@apache.org> changed:

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




--- Comment #2 from Mark Thomas <ma...@apache.org>  2008-09-24 13:25:29 PST ---
No response for over three months. The 44494 fixes are all in 5.5.27 so I am
closing this as a dup.

*** This bug has been marked as a duplicate of bug 44494 ***


-- 
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 45215] Request reader returns length zero

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45215





--- Comment #1 from Mark Thomas <ma...@apache.org>  2008-06-16 11:13:53 PST ---
Sounds like a duplicate of one of the many issues exposed by bug 44494. These
have been fixed in trunk for 6.x. Can you build trunk from svn and test against
it?


-- 
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org