Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 48F14D54F for ; Mon, 3 Dec 2012 16:17:06 +0000 (UTC) Received: (qmail 51417 invoked by uid 500); 3 Dec 2012 16:17:04 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 51116 invoked by uid 500); 3 Dec 2012 16:16:58 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 51083 invoked by uid 99); 3 Dec 2012 16:16:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2012 16:16:58 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bchesneau@gmail.com designates 209.85.215.52 as permitted sender) Received: from [209.85.215.52] (HELO mail-la0-f52.google.com) (209.85.215.52) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2012 16:16:51 +0000 Received: by mail-la0-f52.google.com with SMTP id l5so2191773lah.11 for ; Mon, 03 Dec 2012 08:16:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=3cP/V/fqiVJdTMtCIjMj/uW878VDKC42co9SCyEGIn0=; b=i7KJL6f8wy58uW0twnK3wEiFlIBgICwD6VC7EukqTq2Mwm+UZY1iwnHWq1MjZAuJ8i XW4ttGhYmWvW0xHp0v2TviBUNjd4R+aX+GiuHoAJE0mgPLIKhKIBL0NMnM+qiMZNRSo5 sNngMeeBgbWbXiitXT44jAtJeyegX9ginPrFu8ovhszSXJt5sKXFAnAYnskpmMAgKflT aWUxn94M35tPGw5Y9fIkr2n+VcFw1mJ80pUOioyi3cjV5IVnw/y+zNkLopTndERxl9pl ivaWHtDjcLZGD+C3zi5FbZyQBH+/p0Tc+A82bM+CF+lZEzFwrrYCT1fXL99lFJbfk7VN ajxw== MIME-Version: 1.0 Received: by 10.152.103.100 with SMTP id fv4mr9808042lab.39.1354551390807; Mon, 03 Dec 2012 08:16:30 -0800 (PST) Received: by 10.112.108.162 with HTTP; Mon, 3 Dec 2012 08:16:30 -0800 (PST) In-Reply-To: <50B8BA68.60705@gmail.com> References: <50B8BA68.60705@gmail.com> Date: Mon, 3 Dec 2012 17:16:30 +0100 Message-ID: Subject: Re: Rewrite adds quotes to parameters From: Benoit Chesneau To: "user@couchdb.apache.org" Content-Type: multipart/alternative; boundary=f46d040711e57aa5ed04cff51214 X-Virus-Checked: Checked by ClamAV on apache.org --f46d040711e57aa5ed04cff51214 Content-Type: text/plain; charset=ISO-8859-1 l On Nov 30, 2012 2:54 PM, "Aliaksandr Barysiuk" wrote: > Hello, > > I'm trying to create a rewrite rule for my view that looks like: > /myview/3/["1","2"]/["1","4"]. > Rewrite rule is: > { > "from": "/myview/:group_level/:**startkey/:endkey", > "to": "/path_to_db_and_design_doc/_**view/myview", > "query": { > "group_level" : ":group_level", > "startkey" : ":startkey", > "endkey" : ":endkey" > } > There is a special case for view parameters and it isn't expected to pass them as parameter in current implementation of the rewriter: https://github.com/benoitc/couchdb/blob/master/src/couchdb/couch_httpd_rewrite.erl#L286 Instead I would suggest you to do rename the variable name or just using them as query params. - benoit --f46d040711e57aa5ed04cff51214--