Cyberduck Mountain Duck CLI

Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#1235 closed defect (fixed)

Transfers larger than 2**31 (2147483648) bytes fail

Reported by: reikon Owned by: dkocher
Priority: high Milestone: 3.0
Component: sftp Version: 2.7.3
Severity: major Keywords: sftp integer overflow
Cc: cwr Architecture:
Platform:

Description (last modified by dkocher)

When attempting to download more than 2147483648 bytes (Around 2 GB) Cyberduck gives the following error:

SSH Error:
A badly formatted packet or other SFTP protocol incompatibility was detected.

I believe that using an integer type that has a significantly larger capacity (such as a long) for the counter would solve this problem.

Change History (15)

comment:1 Changed 11 years ago by dkocher

Can you see the same issue with 2.8b1? The SSH library used is different in this version.

comment:2 Changed 11 years ago by reikon

Issue occurs with both 2.7.3 and 2.8b1.

comment:3 Changed 11 years ago by dkocher

  • Milestone set to 2.8.1
  • Status changed from new to assigned
  • Summary changed from Cannot download more than 2**31 (2147483648) bytes via SFTP to Cannot transfer more than 2**31 (2147483648) bytes via SFTP

comment:4 Changed 11 years ago by dkocher

  • Milestone 2.8.1 deleted

This looks like a server issue. The error message is given by the server.

comment:5 Changed 11 years ago by reikon

Oddly enough the upload worked with CrossFTP, another Java FTP client, as well as sftp. For this reason, I don't think it was the server.

comment:6 Changed 11 years ago by sjulean

Can confirm this behavior with 2.8 (3256).

As a workaround, I have resumed the transfer using 'rsync --partial --progress'.

I doubt that this is because of the server: the file has been uploaded there from another Mac, by SFTP, using Transmit. Anyhow, for your information, the server's version string is 'OpenSSH_4.6p1 Debian-5build1, OpenSSL 0.9.8e 23 Feb 2007'.

comment:7 Changed 11 years ago by anonymous

This is definitely a client bug. I was able to upload via the command line sftp client with no problem.

comment:8 Changed 11 years ago by dkocher

  • Milestone set to 2.9
  • Summary changed from Cannot transfer more than 2**31 (2147483648) bytes via SFTP to Transfers larger than 2**31 (2147483648) bytes fail

comment:9 Changed 11 years ago by dkocher

  • Description modified (diff)

comment:10 Changed 11 years ago by dkocher

As a workaround you might want to try SCP. Change the setting Cyberduck > Preferences > SFTP > File Transfers to SCP (SSH Secure File Transfer).

comment:11 Changed 11 years ago by dkocher

#1879 closed as duplicate.

comment:12 Changed 11 years ago by dkocher

  • Milestone changed from 3.0 to 3.1

#1951 closed as duplicate.

comment:13 Changed 11 years ago by dkocher

  • Milestone changed from 3.1 to 3.0
  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed in r3916. Sorry this one took so long.

comment:14 Changed 10 years ago by cwr

Looking at the descriptions, it seems likely that these two tickets describe the same bug:

Ticket #530 (closed defect: worksforme) "incomplete files during SFTP transfer of large directory" opened: Jun 30, 2006 closed: May 18, 2007

Ticket #1235 (closed defect: fixed) "Transfers larger than 231 (2147483648) bytes fail" opened: Aug 30, 2007 closed: May 5, 2008

If the bug still existed in August 2007, why was the first ticket closed in May 2007 with "works for me"?

comment:15 Changed 10 years ago by cwr

  • Cc cwr added
Note: See TracTickets for help on using tickets.
swiss made software