You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Russ Tennant (JIRA)" <ji...@apache.org> on 2017/01/16 22:07:26 UTC

[jira] [Updated] (SSHD-725) SFTP - Some files truncated on retrieval/download

     [ https://issues.apache.org/jira/browse/SSHD-725?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Russ Tennant updated SSHD-725:
------------------------------
    Description: 
When retrieving files (depending on file size), the files are truncated. We have also experienced a similar problem on file upload where we get extra data repeated from the last packet received. 

I don't have a test-case for the file upload issue - yet. Still trying to find the magic file size. 

I created a github project that demonstrates the truncation issue on retrieval.

Project: https://github.com/VentureTech/sshd-test
Example lftp Script: https://github.com/VentureTech/sshd-test/blob/master/download-lftp-script.txt
Example lftp Script Output: https://github.com/VentureTech/sshd-test/blob/master/download-lftp-script-output.txt

I used lftp to demonstrate the issue, but it happens with all clients I've tried (openssh, Intellij IDEA, kde's sftp ioslave).

Attached is the data file I used to trigger the issue.

In the referenced example output lftp terminates the retrieval with the following
{code}
[116371] 2017-01-16 15:27:32 localhost <--- got a packet, length=120, type=101(STATUS), id=12
[116371] 2017-01-16 15:27:32 localhost ---- status code=1(EOF), message=Internal EOFException: Unable to read 16384 bytes from offset=65536 of 5c18fc884da4646cb80a4b12519e6f16
[116371] 2017-01-16 15:27:32 localhost ---- eof
[116371] 2017-01-16 15:27:32 ---> sending a packet, length=41, type=4(CLOSE), id=15
[116371] 2017-01-16 15:27:32 expected pos=61564, actual pos=49152
mget: test-download.data: file size decreased during transfer
{code}


  was:
When retrieving files (depending on file size), the files are truncated. We have also experienced a similar problem on file upload where we get extra data repeated from the last packet received. 

I don't have a test-case for the file upload issue - yet. Still trying to find the magic file size. 

I created a github project that demonstrates the truncation issue on retrieval.

Project: https://github.com/VentureTech/sshd-test
Example Output: https://github.com/VentureTech/sshd-test/blob/master/download-lftp-script-output.txt

I used lftp to demonstrate the issue, but it happens with all clients I've tried (openssh, Intellij IDEA, kde's sftp ioslave).

Attached is the data file I used to trigger the issue.

In the referenced example output lftp terminates the retrieval with the following
{code}
[116371] 2017-01-16 15:27:32 localhost <--- got a packet, length=120, type=101(STATUS), id=12
[116371] 2017-01-16 15:27:32 localhost ---- status code=1(EOF), message=Internal EOFException: Unable to read 16384 bytes from offset=65536 of 5c18fc884da4646cb80a4b12519e6f16
[116371] 2017-01-16 15:27:32 localhost ---- eof
[116371] 2017-01-16 15:27:32 ---> sending a packet, length=41, type=4(CLOSE), id=15
[116371] 2017-01-16 15:27:32 expected pos=61564, actual pos=49152
mget: test-download.data: file size decreased during transfer
{code}



> SFTP - Some files truncated on retrieval/download
> -------------------------------------------------
>
>                 Key: SSHD-725
>                 URL: https://issues.apache.org/jira/browse/SSHD-725
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 1.0.0, 1.2.0, 1.3.0
>         Environment: Various flavors of Linux (ubuntu xenial, centos 6, AWS AMI 2016.x)
>            Reporter: Russ Tennant
>         Attachments: test-download.data
>
>
> When retrieving files (depending on file size), the files are truncated. We have also experienced a similar problem on file upload where we get extra data repeated from the last packet received. 
> I don't have a test-case for the file upload issue - yet. Still trying to find the magic file size. 
> I created a github project that demonstrates the truncation issue on retrieval.
> Project: https://github.com/VentureTech/sshd-test
> Example lftp Script: https://github.com/VentureTech/sshd-test/blob/master/download-lftp-script.txt
> Example lftp Script Output: https://github.com/VentureTech/sshd-test/blob/master/download-lftp-script-output.txt
> I used lftp to demonstrate the issue, but it happens with all clients I've tried (openssh, Intellij IDEA, kde's sftp ioslave).
> Attached is the data file I used to trigger the issue.
> In the referenced example output lftp terminates the retrieval with the following
> {code}
> [116371] 2017-01-16 15:27:32 localhost <--- got a packet, length=120, type=101(STATUS), id=12
> [116371] 2017-01-16 15:27:32 localhost ---- status code=1(EOF), message=Internal EOFException: Unable to read 16384 bytes from offset=65536 of 5c18fc884da4646cb80a4b12519e6f16
> [116371] 2017-01-16 15:27:32 localhost ---- eof
> [116371] 2017-01-16 15:27:32 ---> sending a packet, length=41, type=4(CLOSE), id=15
> [116371] 2017-01-16 15:27:32 expected pos=61564, actual pos=49152
> mget: test-download.data: file size decreased during transfer
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)