From dev-return-10046-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Mon May 31 18:09:03 2010 Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 54869 invoked from network); 31 May 2010 18:09:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 31 May 2010 18:09:02 -0000 Received: (qmail 30000 invoked by uid 500); 31 May 2010 18:09:02 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 29947 invoked by uid 500); 31 May 2010 18:09:02 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 29939 invoked by uid 99); 31 May 2010 18:09:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 May 2010 18:09:02 +0000 X-ASF-Spam-Status: No, hits=-1481.0 required=10.0 tests=ALL_TRUSTED,AWL,FS_REPLICA X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 May 2010 18:09:01 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4VI8fSX007012 for ; Mon, 31 May 2010 18:08:41 GMT Message-ID: <5378375.90601275329321106.JavaMail.jira@thor> Date: Mon, 31 May 2010 14:08:41 -0400 (EDT) From: "Robert Newson (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Updated: (COUCHDB-781) Validate replication arguments In-Reply-To: <2008207.89631275324640257.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Newson updated COUCHDB-781: ---------------------------------- Attachment: validate_replication_props.patch test suite passes. > Validate replication arguments > ------------------------------ > > Key: COUCHDB-781 > URL: https://issues.apache.org/jira/browse/COUCHDB-781 > Project: CouchDB > Issue Type: Improvement > Components: Replication > Reporter: Robert Newson > Attachments: validate_replication_props.patch > > > This patch checks that all keys in the JSON passed via _replicate/ are valid. This provides an information 400 error like this; > {"error":"bad_request","reason":"Unsupported key 'foo' with value 'true'"} > instead of silently accepting the request. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.