PDA

View Full Version : FTP method missing files over X GB


pmow
07-02-2010, 03:14 PM
I'd submitted a bug previously for this issue, but it seems it was not fixed in the release. The following file will not show up in the SFTP applet, because of its large size.


total 4595600
drwxrwxrwx 2 root root 4096 2010-07-02 09:10 .
drwxr-x--- 30 test www-data 4096 2010-07-02 09:10 ..
-rw-rw-rw- 1 root root 4701279300 2010-06-25 15:23 test.mkv


Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd test
250 CWD command successful
ftp> dir
200 PORT command successful
150 Opening ASCII mode data connection for file list
-rw-rw-rw- 1 root root 4701279300 Jun 25 21:23 test.mkv
226 Transfer complete

mjawwad
07-16-2010, 03:37 AM
What is the size of the file? Does this happen for files above a certain size? If so what size is it?

pmow
07-18-2010, 11:03 PM
It's around 4GB...if you need an exact number I can figure out a way to get it by process of elimination. Maybe it's the variable where the size is stored? FTP reports in bytes...so it would be a value of >4000000000.

mjawwad
07-19-2010, 12:14 AM
What version of the applet are you using? You can determine this by clicking on the applet About button.

pmow
07-25-2010, 02:25 PM
It is version 6.2.

mjawwad
07-25-2010, 04:41 PM
I am unable to duplicate this locally, use the following parameter in index.html source file or params.txt file :

debug = true

This will send all debug output to the console, post the entire output in your response.

mjawwad
07-26-2010, 11:10 PM
Unfortunately I still cannot duplicate this locally using version 6.2. Please update your files from this location, make sure sftpapplet.jar, params.txt, language.txt are updated.

http://www.jscape.com/sftpapplet/index.html

pmow
07-27-2010, 02:38 PM
Are you sure you tested with a large enough file? I shoudl also note that this is happening over FTPS.

The error:
java.lang.NumberFormatException: For input string: "4701061273"

Sounds like a type issue. When I searched for this error, I found hxxp://javagalaxy.com/forum/viewtopic.php?p=514&sid=9b2e7c603ea9a0b8eeb157eb379ca0ad which describes the following:
You are trying to parse a String using
int in1 = Integer.parseInt("9999999999999");

java.lang.NumberFormatException: For input string: "9999999999999"

In this case the number that you have provided is exceeding the limit for int
(which is minimum - 2,147,483,648 and maximum of + 2,147,483,648)

In other words, the int type has a maximum of 2.14GB (where xB = 1000B). It seems to be why this is happening. Other variable types such as the "long" type can hold up to 9,223,372,036GB.

pmow
07-27-2010, 02:39 PM
By the way I did test by getting the latest copy, and using the new files. I have to edit params to get into my server...it still works fine until I get to a large file.

mjawwad
07-29-2010, 12:48 AM
I have attached a screen-shot displaying a file size of 5 GB (5242954000 bytes or 5242954 KB), I'm still unable to duplicate this either on the Secure FTP Applet source code or the version available on JSCAPE's website.

pmow
07-29-2010, 06:13 PM
I believe you, but I'm curious as to where this is coming from. I can definitely use it fine with smaller files, but it has this problem with both FTP and FTPS. Perhaps you can test using my server and see if that helps?

72.232.198.170
test/test

mjawwad
07-29-2010, 08:32 PM
Hi,
I was able to duplicate this using your test credentials, please keep the test account open until I post here, should be sometime today.

mjawwad
07-29-2010, 11:17 PM
This has been resolved. The problem was in the applet's Unix parser class which was attempting to read the file size as a Java integer instead of a Java long primitive type. This fix will be available in the next release of the applet, expect a release at the end of first week of August 2010.

pmow
07-30-2010, 03:22 PM
Thank you! I will be able to finally see big files :)

mjawwad
08-22-2010, 05:42 PM
Hi,
Download Secure FTP Applet 6.4 from this link : http://www.jscape.com/sftpapplet/dload.html
Version History : http://www.jscape.com/sftpapplet/docs/HTML/index.html?introhistory.html

pmow
08-24-2010, 01:52 AM
Thank you so much, it works like a charm.