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 4A1D2DFD0 for ; Fri, 27 Jul 2012 14:28:36 +0000 (UTC) Received: (qmail 60414 invoked by uid 500); 27 Jul 2012 14:28:35 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 60293 invoked by uid 500); 27 Jul 2012 14:28:35 -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 60274 invoked by uid 99); 27 Jul 2012 14:28:35 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jul 2012 14:28:35 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id D20AA140B94 for ; Fri, 27 Jul 2012 14:28:34 +0000 (UTC) Date: Fri, 27 Jul 2012 14:28:33 +0000 (UTC) From: "Lovasoa (JIRA)" To: dev@couchdb.apache.org Message-ID: <1459224924.110595.1343399314862.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Created] (COUCHDB-1516) "formats" is ignored inside arrays in URL rewriting MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Lovasoa created COUCHDB-1516: -------------------------------- Summary: "formats" is ignored inside arrays in URL rewriting Key: COUCHDB-1516 URL: https://issues.apache.org/jira/browse/COUCHDB-1516 Project: CouchDB Issue Type: Bug Components: Database Core Affects Versions: 1.2 Reporter: Lovasoa I have the following rewrite rule : { "from": "/data-update/:pool/:lastvisit", "to": "/_list/prettyJSON/questions-by-date", "query" : { "startkey" : [":pool", {}], "endkey" : [":pool", ":lastvisit"], "descending" : "true" }, "formats":{"descending":"bool","lastvisit":"int"} } My questions-by-date view emits key of the type [, ]. The rewriter redirects /data-update/pool0/42 to /_list/prettyJSON/questions-by-date?descending=true&startkey=["pool0", {}]&endkey=["pool0", "42"] instead of /_list/prettyJSON/questions-by-date?descending=true&startkey=["pool0", {}]&endkey=["pool0", 42] (it adds quotes around "42"). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira