Issue Details (XML | Word | Printable)

Key: NET-11
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Kurt Kessel
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons Net

FTPFile.getSize() returns 0 on large files

Created: 27/Jul/04 06:54 PM   Updated: 20/Sep/07 05:31 AM
Return to search
Component/s: None
Affects Version/s: Nightly Builds
Fix Version/s: None

Time Tracking:
Not Specified

Environment:
Operating System: All
Platform: Other

Bugzilla Id: 30345


 Description  « Hide
The FTPFile.getSize() returns a 0 when the file size is actually larger than 2GB
(Integer.MAX_VALUE) although the return type is a long.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Daniel Savarese added a comment - 28/Jul/04 12:05 PM
It looks like there was a regression in the migration to new parsers.
Most of the new parsers parsed the file size as an integer instead of
a long, as was done by the old DefaultFTPFileListParser. Changed all
of them to set the size to long.

Affected files:
EnterpriseUnixFTPEntryParser.java
NTFTPEntryParser.java
OS2FTPEntryParser.java
OS400FTPEntryParser.java
UnixFTPEntryParser.java
VMSFTPEntryParser.java

Please verify fix against CVS HEAD before closing.


Daniel Savarese added a comment - 03/Sep/04 10:58 PM
      • COM-1536 has been marked as a duplicate of this bug. ***