Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 17376 invoked from network); 12 Sep 2010 07:35:36 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Sep 2010 07:35:36 -0000 Received: (qmail 58088 invoked by uid 500); 12 Sep 2010 07:35:35 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 57801 invoked by uid 500); 12 Sep 2010 07:35:32 -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 57793 invoked by uid 99); 12 Sep 2010 07:35:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Sep 2010 07:35:31 +0000 X-ASF-Spam-Status: No, hits=4.5 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_NO_WWW_INFO_CGI X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of hskupin@gmail.com designates 209.85.216.52 as permitted sender) Received: from [209.85.216.52] (HELO mail-qw0-f52.google.com) (209.85.216.52) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Sep 2010 07:35:25 +0000 Received: by qwf6 with SMTP id 6so3297544qwf.11 for ; Sun, 12 Sep 2010 00:35:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=sgN+wAwoORGO+aBMeDP2BZu+9OwMl4B+zJaqGJH2KMI=; b=ho96EQbVsluyMB2xGW0qwo16ywbi9fwDgz9bxkbT8r8LExDVwt/kkhh3vk8LddR2FN +xRjcdKczM9MECjNHnt0I310AaYIuh5Q8qS5s3nb2blkzjkWbnbDLpG+1eOz2rfwu0Mn YSyyp6AJC+vwRAscd4S0feIWbbyzr46OZgoEc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=an4CbUS3CLFkuEfaxwokTKma1qsNPYpZ5r7SYUOUgfKRX7lyCqVsSdIMaLLy2+Hx3o rogD7rzJ/EbOuhKuQNpdPU8J3T7TVCIXldclv+gooDKhBIu4+2cbpSissM41tbBZJMKJ Cy9hwaDiHztA6tBQ7Q5p2mDrCsdFjFFJzQGqI= MIME-Version: 1.0 Received: by 10.229.68.13 with SMTP id t13mr1946474qci.101.1284276903177; Sun, 12 Sep 2010 00:35:03 -0700 (PDT) Received: by 10.229.17.144 with HTTP; Sun, 12 Sep 2010 00:35:03 -0700 (PDT) Date: Sun, 12 Sep 2010 00:35:03 -0700 Message-ID: Subject: Query parameters in rewrites.json not handled as default values From: Henrik Skupin To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=0016e644d5509b6fb404900b0479 --0016e644d5509b6fb404900b0479 Content-Type: text/plain; charset=UTF-8 Hi, During this week while being at Couchcamp I have already talked to Chris and we decided to follow-up on the topic in the mailing list. With the latest version of CouchDB the URL parameters don't seem be taken into account when the rewrites.json file specifies the same ones for the appropriate entry. See the following example: { "from" : "/general/reports", "to" : "_list/general_reports/general_reportsByDate", "query" : { "descending" : true, "limit" : 51 } } default values: http://mozmill.hskupin.info/general/reports custom values: http://mozmill.hskupin.info/general/reports?limit=10 Whether which URL you are loading, the default values are always used. Once the limit entry gets removed from the rewrites.json file, the URL parameter is used and 10 rows are displayed. IMO the values specified in rewrites.json should really be default ones and should not override user defined values. Henrik --0016e644d5509b6fb404900b0479--