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 2015/02/13 05:38:39 UTC

[Bug 57581] New: request.getBytesRead() should be long

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

            Bug ID: 57581
           Summary: request.getBytesRead() should be long
           Product: Tomcat 7
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Servlet & JSP API
          Assignee: dev@tomcat.apache.org
          Reporter: neogia@naver.com

Class org.apache.coyote.Request has bytesRead variable's return type is int.

When file upload (grater than 2 GB), it returns negative value.

Return type should be change to long.

This bug affected all version of tomcat 6, 7, 8, 9.

---------------------------------------------------------

* AS-IS

private int bytesRead=0;

public int getBytesRead() {
   return bytesRead;
}

* TO-BE

private long bytesRead=0;

public long getBytesRead() {
   return bytesRead;
}

-- 
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


[Bug 57581] request.getBytesRead() should be long

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

Konstantin Kolinko <kn...@gmail.com> changed:

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

--- Comment #1 from Konstantin Kolinko <kn...@gmail.com> ---
Fixed in Tomcat 7, 8, proposed for Tomcat 6.
The fix will be in 7.0.60, 8.0.19 onwards.

Thank you for reporting this issue.

r1659521 (trunk), r1659522 (8.0), r1659523 (7.0).

-- 
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