Re: [ftpext] File Transfer Protocol RANG Command for Byte Ranges

Daniel Stenberg <daniel@haxx.se> Mon, 20 December 2010 21:35 UTC

Return-Path: <daniel@haxx.se>
X-Original-To: ftpext@core3.amsl.com
Delivered-To: ftpext@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id D135F3A68F7 for <ftpext@core3.amsl.com>; Mon, 20 Dec 2010 13:35:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.385
X-Spam-Level:
X-Spam-Status: No, score=-3.385 tagged_above=-999 required=5 tests=[AWL=-1.136, BAYES_00=-2.599, HELO_EQ_SE=0.35]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id s7RE68wMDMds for <ftpext@core3.amsl.com>; Mon, 20 Dec 2010 13:35:23 -0800 (PST)
Received: from giant.haxx.se (giant.haxx.se [80.67.6.50]) by core3.amsl.com (Postfix) with ESMTP id 63BEA3A68EC for <ftpext@ietf.org>; Mon, 20 Dec 2010 13:35:23 -0800 (PST)
Received: from giant.haxx.se (giant.haxx.se [80.67.6.50]) by giant.haxx.se (8.14.3/8.14.3/Debian-9.1) with ESMTP id oBKLbJGJ014158; Mon, 20 Dec 2010 22:37:19 +0100
Date: Mon, 20 Dec 2010 22:37:19 +0100
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: Richard Koenning <Richard.Koenning@ts.fujitsu.com>
In-Reply-To: <4D0F7841.2080108@ts.fujitsu.com>
Message-ID: <alpine.DEB.2.00.1012202235110.8006@tvnag.unkk.fr>
References: <alpine.DEB.2.00.1012200851550.4567@tvnag.unkk.fr> <4D0F7841.2080108@ts.fujitsu.com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset="US-ASCII"; format="flowed"
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.5 (giant.haxx.se [80.67.6.50]); Mon, 20 Dec 2010 22:37:19 +0100 (CET)
Cc: "ftpext@ietf.org" <ftpext@ietf.org>
Subject: Re: [ftpext] File Transfer Protocol RANG Command for Byte Ranges
X-BeenThere: ftpext@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: <ftpext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/ftpext>, <mailto:ftpext-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ftpext>
List-Post: <mailto:ftpext@ietf.org>
List-Help: <mailto:ftpext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ftpext>, <mailto:ftpext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 20 Dec 2010 21:35:24 -0000

On Mon, 20 Dec 2010, Richard Koenning wrote:

>>  	http://www.ietf.org/id/draft-bryan-ftp-range-00.txt
>
> iirc some FTP server implementations support the SIZE/REST commands only for 
> TYPE I, because supporting it for TYPE A or E would require to read the file 
> completely before giving an answer, which would make the server prone to DoS 
> attacks. These implementations will probably confine the RANG command to 
> TYPE I too.

I think it make sense to limit the command to only TYPE I transfers, as long 
as nobody can come up with a plausible way and use case for another type.

-- 

  / daniel.haxx.se