Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8AC32F6F5 for ; Fri, 5 Apr 2013 18:22:12 +0000 (UTC) Received: (qmail 82545 invoked by uid 500); 5 Apr 2013 18:22:12 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 82510 invoked by uid 500); 5 Apr 2013 18:22:12 -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 82502 invoked by uid 99); 5 Apr 2013 18:22:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Apr 2013 18:22:12 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bchesneau@gmail.com designates 209.85.216.182 as permitted sender) Received: from [209.85.216.182] (HELO mail-qc0-f182.google.com) (209.85.216.182) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Apr 2013 18:22:07 +0000 Received: by mail-qc0-f182.google.com with SMTP id k19so1778831qcs.27 for ; Fri, 05 Apr 2013 11:21:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=ZpoHMy6nMd2WA+tUEYzLhh8uHlovvqn8ns1BSZVaUyY=; b=vJp5HTnB4RLrAdaXbWUF0c2kuBbjhg/r6/gGjmRZmSIYeSFMw8OprndZqL+lkQ7JoJ 48NM7ceWwv3ay1K2QhXC48m43K+Qz73WZpnygMZuNhqT9b3ymxa+NmGaSI6UKct+QQyW CroJFb7j3675gBjvpnIvKApneuTULPl3BAIX2Why8Llq+R9e7pfgDWE9dOTSlYLnH1To qMK+JbuHF98KLZgVfEBrYhZT714nZ0Aa8n0tawlAWO3uQl6jV9t/MXgwA5tPAoRp6n5n wgkLckfmmUUMakH9xr+Nu+E36gIQiKBJzZTjamH7D9zEt0Erx6XOSPkQf+2vrWcV+EaA n7Yg== MIME-Version: 1.0 X-Received: by 10.229.118.27 with SMTP id t27mr3668014qcq.143.1365186107116; Fri, 05 Apr 2013 11:21:47 -0700 (PDT) Received: by 10.49.64.232 with HTTP; Fri, 5 Apr 2013 11:21:46 -0700 (PDT) In-Reply-To: References: <1365184392016.73308dba@Nodemailer> Date: Fri, 5 Apr 2013 20:21:46 +0200 Message-ID: Subject: Re: git commit: Disable checking for string query_params values From: Benoit Chesneau To: "dev@couchdb.apache.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Thinking more about that issue, and I think that once the patch for the view changes will be integrated there is a need to accept any JSON value there for the view params. Then maybe just removing the comments since we won't have it anymore. On Fri, Apr 5, 2013 at 8:12 PM, Benoit Chesneau wrote= : > If the intention is to remove that filter, then why just comment it? > Imo the patch should be reworked. > > Also not sure it should be re removed, the question is more why should > we accept any JSON value there? What is the purpose? Shouldn't we on > the contrary fix the replicator db to not accept that? > > This case looks similar to the possibility we add to pass any JSON > values in roles. We decided in that case to forbid this usage if I > remember well, didn't check in the commits. Isn't it similar? > > I'm trying to understand the issue there. Also the discussion should > probably happen on COUCHDB-1534 which is still open. > > - beno=EEt > > On Fri, Apr 5, 2013 at 7:53 PM, Noah Slater wrote: >> Okay. Thanks! >> >> On Fri, Apr 5, 2013 at 6:01 PM, Jason Smith wrote: >> >>> No and no. >>> On Wed, Apr 3, 2013 at 12:24 AM, Noah Slater wrote= : >>>> Has it been backed out? (Should it be?) >>>> >>>> >>>> On 25 March 2013 11:12, Jason Smith wrote: >>>> >>>>> I checked, this commit is only in the COUCHDB-1534 branch in Git. It = is not >>>>> in any others (1.3.x, master). >>>>> >>>>> >>>>> On Mon, Mar 25, 2013 at 11:09 AM, Jason Smith wro= te: >>>>> >>>>> > Oh wow, sorry, all, I missed this. >>>>> > >>>>> > The commit addresses COUCHDB-1534. However that issue is not yet cl= osed >>>>> > due to missing unit tests. And Paul wants to remove the function en= tirely >>>>> > (which is fine by me). >>>>> > >>>>> > The comment about iris-monitor was for me, when I diff our branch a= gainst >>>>> > ASF, I would recall the reason for the change. But it is spurious. = I >>>>> > believe I cherry-picked a commit and forgot about the comment. >>>>> > >>>>> > >>>>> > >>>>> > On Sat, Mar 23, 2013 at 8:02 PM, Noah Slater w= rote: >>>>> > >>>>> >> Was this a mistaken commit? Was it resolved? >>>>> >> >>>>> >> >>>>> >> On 10 October 2012 21:06, Jan Lehnardt wrote: >>>>> >> >>>>> >> > Jason, >>>>> >> > >>>>> >> > did you mean to commit this to Apache? >>>>> >> > >>>>> >> > Cheers >>>>> >> > Jan >>>>> >> > -- >>>>> >> > >>>>> >> > >>>>> >> > On Sep 14, 2012, at 04:08 , jhs@apache.org wrote: >>>>> >> > >>>>> >> > > Updated Branches: >>>>> >> > > refs/heads/COUCHDB-1534 [created] 835b57b19 >>>>> >> > > >>>>> >> > > >>>>> >> > > Disable checking for string query_params values >>>>> >> > > >>>>> >> > > >>>>> >> > > Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo >>>>> >> > > Commit: >>>>> >> http://git-wip-us.apache.org/repos/asf/couchdb/commit/835b57b1 >>>>> >> > > Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/835b= 57b1 >>>>> >> > > Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/835b= 57b1 >>>>> >> > > >>>>> >> > > Branch: refs/heads/COUCHDB-1534 >>>>> >> > > Commit: 835b57b196d423ae5132a559e727031521da8ce9 >>>>> >> > > Parents: 53490d9 >>>>> >> > > Author: Jason Smith (work) >>>>> >> > > Authored: Tue Sep 4 06:35:52 2012 +0000 >>>>> >> > > Committer: Jason Smith (air) >>>>> >> > > Committed: Fri Sep 14 09:02:04 2012 +0700 >>>>> >> > > >>>>> >> > > >>>>> ---------------------------------------------------------------------= - >>>>> >> > > src/couchdb/couch_httpd_replicator.erl | 6 ++++-- >>>>> >> > > 1 files changed, 4 insertions(+), 2 deletions(-) >>>>> >> > > >>>>> ---------------------------------------------------------------------= - >>>>> >> > > >>>>> >> > > >>>>> >> > > >>>>> >> > >>>>> >> >>>>> http://git-wip-us.apache.org/repos/asf/couchdb/blob/835b57b1/src/couc= hdb/couch_httpd_replicator.erl >>>>> >> > > >>>>> ---------------------------------------------------------------------= - >>>>> >> > > diff --git a/src/couchdb/couch_httpd_replicator.erl >>>>> >> > b/src/couchdb/couch_httpd_replicator.erl >>>>> >> > > index fb1e350..47de476 100644 >>>>> >> > > --- a/src/couchdb/couch_httpd_replicator.erl >>>>> >> > > +++ b/src/couchdb/couch_httpd_replicator.erl >>>>> >> > > @@ -58,8 +58,10 @@ validate_rep_props([]) -> >>>>> >> > > validate_rep_props([{<<"query_params">>, {Params}}|Rest]) -> >>>>> >> > > lists:foreach(fun >>>>> >> > > ({_,V}) when is_binary(V) -> ok; >>>>> >> > > - ({K,_}) -> throw({bad_request, >>>>> >> > > - <>}) >>>>> >> > > + % Disabled to support the iris-monitor replicator >>>>> >> > > + %({K,_}) -> throw({bad_request, >>>>> >> > > + % <>}) >>>>> >> > > + ({K,_}) -> ok >>>>> >> > > end, Params), >>>>> >> > > validate_rep_props(Rest); >>>>> >> > > validate_rep_props([_|Rest]) -> >>>>> >> > > >>>>> >> > >>>>> >> > >>>>> >> >>>>> >> >>>>> >> -- >>>>> >> NS >>>>> >> >>>>> > >>>>> > >>>>> > >>>>> > -- >>>>> > Iris Couch >>>>> > >>>>> >>>>> >>>>> >>>>> -- >>>>> Iris Couch >>>>> >>>> >>>> >>>> >>>> -- >>>> NS >>> -- >>> Iris Couch