Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 9067 invoked from network); 9 Jan 2011 14:37:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Jan 2011 14:37:11 -0000 Received: (qmail 15804 invoked by uid 500); 9 Jan 2011 14:37:10 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 15558 invoked by uid 500); 9 Jan 2011 14:37:10 -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 15550 invoked by uid 99); 9 Jan 2011 14:37:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Jan 2011 14:37:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED 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; Sun, 09 Jan 2011 14:37:07 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p09Eajls025219 for ; Sun, 9 Jan 2011 14:36:45 GMT Message-ID: <19526445.239471294583805644.JavaMail.jira@thor> Date: Sun, 9 Jan 2011 09:36:45 -0500 (EST) From: "Michel Legnered (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Created: (COUCHDB-1017) HTTP Rewrite Handler: Rewriting strings in queries MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org HTTP Rewrite Handler: Rewriting strings in queries -------------------------------------------------- Key: COUCHDB-1017 URL: https://issues.apache.org/jira/browse/COUCHDB-1017 Project: CouchDB Issue Type: Improvement Components: HTTP Interface Affects Versions: 1.0.1 Reporter: Michel Legnered Priority: Minor I have this rewrite: { "from": "/u/:key", "to": "_list/pouch/user-items", "method": "GET", "query": {"key": ":key"} } ..where the view returns: {"error":"bad_request","reason":"invalid UTF-8 JSON"}. The view query looks like this ?key=somekey, but for the view to succeed "somekey" need to be in double quotes. Maybe one could improve the rewriter's behavior for rewriting strings in queries? Here is one workaround: { "from": "/u/*", "to": "_list/pouch/user-items", "method": "GET", "query": { "startkey": ["*"], "endkey": ["*", {}] } }, -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.