Return-Path: Delivered-To: apmail-incubator-couchdb-dev-archive@locus.apache.org Received: (qmail 64882 invoked from network); 22 Nov 2008 06:38:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Nov 2008 06:38:38 -0000 Received: (qmail 24206 invoked by uid 500); 22 Nov 2008 06:38:46 -0000 Delivered-To: apmail-incubator-couchdb-dev-archive@incubator.apache.org Received: (qmail 24171 invoked by uid 500); 22 Nov 2008 06:38:46 -0000 Mailing-List: contact couchdb-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-dev@incubator.apache.org Delivered-To: mailing list couchdb-dev@incubator.apache.org Received: (qmail 24160 invoked by uid 99); 22 Nov 2008 06:38:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Nov 2008 22:38:46 -0800 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: domain of jchris@gmail.com designates 209.85.198.250 as permitted sender) Received: from [209.85.198.250] (HELO rv-out-0708.google.com) (209.85.198.250) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Nov 2008 06:37:21 +0000 Received: by rv-out-0708.google.com with SMTP id k29so1550531rvb.0 for ; Fri, 21 Nov 2008 22:37:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:x-mailer :mime-version:subject:date:references; bh=/vhCzChR4/axjYDDg56ZUavYeCp2nTSmHBXFC93Hdsc=; b=OBHu90y9BuWm2m91ObrzFY7Q3ikggNJncWy5JHm5hIG9kNulSvEOLeSbZCRQ+aY3om w83jUpL1NFwKSaKrPwe93Xpb3bh/OjSUVvqyrFU6Sh8ZK/ERbtKf4YiJToq7KP/9AGGC vF/cz9Hih756a1CeP1en7bzDtIOGFjlt4l1Io= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:x-mailer:mime-version:subject:date :references; b=uhiCIrWc65WLdb3FWSPT5SkTrLaKvlvXDw8AYxpc52OzKDgjw+QKRPxKVA09grJHUG j5Qr3zac+bLbXvM1OL6JAq56Mc6v3Qm5xLKEPmavZQaZWYyZt65/u4GpcS+Sl0adHIKR Z8cNuHGoD9nvQykxeriWgenBUt3HZ9ezv1Kwc= Received: by 10.142.158.17 with SMTP id g17mr659199wfe.54.1227335876937; Fri, 21 Nov 2008 22:37:56 -0800 (PST) Received: from ?192.168.1.105? (c-76-115-0-4.hsd1.or.comcast.net [76.115.0.4]) by mx.google.com with ESMTPS id 30sm3463683wfg.5.2008.11.21.22.37.55 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 21 Nov 2008 22:37:55 -0800 (PST) Message-Id: From: Chris Anderson To: couchdb-dev@incubator.apache.org In-Reply-To: <20081122051809.GA407@tumbolia.org> Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Mailer: iPhone Mail (5F136) Mime-Version: 1.0 (iPhone Mail 5F136) Subject: Re: New Security and Validation Features Date: Fri, 21 Nov 2008 22:38:11 -0800 References: <4E0F30B6-B707-43F3-B7C7-90A3C2FFB900@apache.org> <64a10fff0811211434o5d58200ah2d50c908eabba228@mail.gmail.com> <99A25D05-7A9B-431A-BE14-07A8ACC31156@apache.org> <20081122001001.GK4328@tumbolia.org> <351024.69671.qm@web57208.mail.re3.yahoo.com> <20081122051809.GA407@tumbolia.org> X-Virus-Checked: Checked by ClamAV on apache.org On Nov 21, 2008, at 9:18 PM, Noah Slater wrote: > That's what she said! :/ /groan Q for Damien: could the validation function take care of adding the author from the user context for new documents, or must it refrain from changing the incoming document? I'm a little unclear about how the user context for replication will appear. It will be the user who triggered the replication? Or a user corresponding to the source database? Will there be a way for validation functions to know when the update comes via replication as opposed to from a regular update? Chris > > > On Fri, Nov 21, 2008 at 06:52:43PM -0800, Bradford Winfrey wrote: >> isn't that a full,colon? >> >> (add joke here) >> >> >> >> >> ________________________________ >> From: Damien Katz >> To: couchdb-dev@incubator.apache.org >> Sent: Friday, November 21, 2008 6:17:03 PM >> Subject: Re: New Security and Validation Features >> >> The correct one has a semi-colon after forbidden. >> >> On Nov 21, 2008, at 7:10 PM, Noah Slater wrote: >> >>> On Fri, Nov 21, 2008 at 05:42:39PM -0500, Damien Katz wrote: >>>>> throw {forbidden, "All documents must have an author specified."} >>> >>>> throw {forbidden: "All documents must have an author specified."} >>> >>> These are the same? >>> >> >> >> > -- > Noah Slater, http://tumbolia.org/nslater