Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 89210 invoked from network); 11 Oct 2007 11:04:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Oct 2007 11:04:29 -0000 Received: (qmail 89760 invoked by uid 500); 11 Oct 2007 11:04:14 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 89700 invoked by uid 500); 11 Oct 2007 11:04:14 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 89689 invoked by uid 99); 11 Oct 2007 11:04:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Oct 2007 04:04:14 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [192.18.19.7] (HELO sineb-mail-2.sun.com) (192.18.19.7) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Oct 2007 11:04:16 +0000 Received: from fe-apac-06.sun.com (fe-apac-06.sun.com [192.18.19.177] (may be forged)) by sineb-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id l9BB3XD2006047 for ; Thu, 11 Oct 2007 11:03:44 GMT Received: from conversion-daemon.mail-apac.sun.com by mail-apac.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) id <0JPQ00J01ULYLG00@mail-apac.sun.com> (original mail from Rahul.G.Nair@Sun.COM) for dev@httpd.apache.org; Thu, 11 Oct 2007 19:03:33 +0800 (SGT) Received: from localhost ([129.158.224.78]) by mail-apac.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPSA id <0JPQ00H75UPWYJBQ@mail-apac.sun.com> for dev@httpd.apache.org; Thu, 11 Oct 2007 19:03:33 +0800 (SGT) X-URL: http://vrthra.googlepages.com Date: Thu, 11 Oct 2007 16:23:53 +0530 From: rahul Subject: Re: Broken URI-unescaping in mod_proxy In-reply-to: <36735.84.233.182.145.1192028034.squirrel@www.sharp.fm> Sender: Rahul.G.Nair@Sun.COM To: dev@httpd.apache.org Message-id: <20071011105353.GV99478@vayavyam.India.Sun.COM> MIME-version: 1.0 X-Mailer: Mutt/v1.5i Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline X-Operating-System: FreeBSD References: <470BFDEE.8030103@sharp.fm> <20071009232637.3dc60d6a@grimnir> <20071010132700.GL99478@vayavyam.India.Sun.COM> <36735.84.233.182.145.1192028034.squirrel@www.sharp.fm> User-Agent: Mutt/1.5.11 X-Virus-Checked: Checked by ClamAV on apache.org [Graham Leggett:] | > It would be nice to have different modules for reverse proxy and forward | > proxy.. from an FTP perspective. | > | > There is a fairly large difference in FTP (and perhaps in other protocols | > too) in terms of the optimizations that needs to be done for forward proxy | > and reverse proxy. | > | > In forward proxy, we can not assume the kind of ftp servers the client | > requests. So when there is an error of some sort we should try again | > with a syntax that might be acceptable to the next possible type of | > server. | > | > In the reverse proxy, this is wrong, and introduces unnecessary | > overheads in network traffic (where it would be simpler to ask the user | > to provide the type of server in the backend and error out if the ftp | > server returns error.) | | There is no need to have separate module to achieve this - providing a | mechanism to override certain behaviour when the administrator wants it, | but defaulting to RFC compliant behaviour will achieve the same thing. True, my point is that these choices are distributed all over the code. While it can certainly be run together, it would be much cleaner to have different modules with emphasis on different things while using a common ftp_util base for things that are similar. Another problem is with the default behavior. What is nice for a forward ftp proxy is not a correct default for a reverse ftp proxy (as explained above). Thirdly, the FTP rfc is silent (AFAIK - please correct me if I am wrong.) in things like LIST format. so there is no RFC compliant behavior to default to for this. rahul -- 1. e4 _