Cyberduck Mountain Duck CLI

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

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 on Aug 30, 2007 at 8:54:40 PM by dkocher

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

comment:2 Changed on Aug 30, 2007 at 9:01:44 PM by reikon

Issue occurs with both 2.7.3 and 2.8b1.

comment:3 Changed on Oct 16, 2007 at 10:27:10 AM 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 on Nov 3, 2007 at 7:12:53 PM by dkocher

  • Milestone 2.8.1 deleted

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

comment:5 Changed on Nov 4, 2007 at 9:31:28 PM 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 on Nov 15, 2007 at 2:33:09 AM 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 on Jan 15, 2008 at 8:29:13 PM 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 on Jan 29, 2008 at 9:01:28 PM 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 on Jan 29, 2008 at 9:02:05 PM by dkocher

  • Description modified (diff)

comment:10 Changed on Jan 29, 2008 at 9:05:17 PM 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 on Mar 27, 2008 at 11:57:13 AM by dkocher

#1879 closed as duplicate.

comment:12 Changed on Apr 17, 2008 at 5:00:09 PM by dkocher

  • Milestone changed from 3.0 to 3.1

#1951 closed as duplicate.

comment:13 Changed on May 5, 2008 at 3:15:03 PM 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 on May 20, 2009 at 7:00:38 PM 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 on May 20, 2009 at 7:01:02 PM by cwr

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