Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 43255 invoked from network); 10 Sep 2007 16:36:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Sep 2007 16:36:33 -0000 Received: (qmail 69666 invoked by uid 500); 10 Sep 2007 16:36:23 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 69602 invoked by uid 500); 10 Sep 2007 16:36:23 -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 69591 invoked by uid 99); 10 Sep 2007 16:36:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Sep 2007 09:36:23 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [24.71.223.10] (HELO pd2mo3so.prod.shaw.ca) (24.71.223.10) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Sep 2007 16:36:20 +0000 Received: from pd3mr2so.prod.shaw.ca (pd3mr2so-qfe3.prod.shaw.ca [10.0.141.178]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JO500BKZVE2S770@l-daemon> for dev@httpd.apache.org; Mon, 10 Sep 2007 10:34:50 -0600 (MDT) Received: from pn2ml6so.prod.shaw.ca ([10.0.121.150]) by pd3mr2so.prod.shaw.ca (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JO500FW6VE2OY70@pd3mr2so.prod.shaw.ca> for dev@httpd.apache.org; Mon, 10 Sep 2007 10:34:51 -0600 (MDT) Received: from [192.168.0.103] ([24.69.83.252]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JO5001V7VE1F0C3@l-daemon> for dev@httpd.apache.org; Mon, 10 Sep 2007 10:34:50 -0600 (MDT) Date: Mon, 10 Sep 2007 09:36:41 -0700 From: Chris Darroch Subject: Re: mod_dav hack In-reply-to: <50056.1188954873@comment.icecreamhasnobones.org> To: dev@httpd.apache.org Message-id: <46E57299.3080406@pearsoncmg.com> Organization: Pearson CMG/CTG MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Accept-Language: en-ca, en-us X-Enigmail-Version: 0.93.0.0 References: <50056.1188954873@comment.icecreamhasnobones.org> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060423 X-Virus-Checked: Checked by ClamAV on apache.org Fred Woods wrote: > I've written an extension/hack for mod_dav. I would like to know if it > would be useful to others and how I might change it to be more portable? > > The hack hooks the code to store, copy, rename, and remove files. > It creates a string representing the operation and the path elements, > and writes the string to a unix domain socket. The simple hook method > was chosen so as to have as little affect on the apache web server as > possible. > > The service I have listening on the unix domain socket is called davsync. > It is a service that replicates the operations onto other servers and > selectively checks some types of files into a configured version control > system. > > To make it portable, I assume I all need to do is make the hook socket > configurable in the httpd.conf file and handle other types of sockets? Sounds interesting ... can you put it up somewhere so others can take a look? (Hard to know in the abstract if those are the only portability issues.) It would be of interest to me if the "store" hook could also invoke a "content validation" provider to, for example, do XML validation against a schema before permitting the file to be changed. Chris. -- GPG Key ID: 366A375B GPG Key Fingerprint: 485E 5041 17E1 E2BB C263 E4DE C8E3 FA36 366A 375B