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 5AA109FFF for ; Mon, 19 Sep 2011 20:06:35 +0000 (UTC) Received: (qmail 84657 invoked by uid 500); 19 Sep 2011 20:06:32 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 84612 invoked by uid 500); 19 Sep 2011 20:06:32 -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 84554 invoked by uid 99); 19 Sep 2011 20:06:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Sep 2011 20:06:32 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Sep 2011 20:06:30 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2D939A20F2 for ; Mon, 19 Sep 2011 20:06:09 +0000 (UTC) Date: Mon, 19 Sep 2011 20:06:09 +0000 (UTC) From: "matthew o'gorman (JIRA)" To: dev@couchdb.apache.org Message-ID: <1970283619.43567.1316462769181.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1434368941.43500.1316460851641.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (COUCHDB-1290) rewrite with variable and query option produces a badarg error 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 [ https://issues.apache.org/jira/browse/COUCHDB-1290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13108099#comment-13108099 ] matthew o'gorman commented on COUCHDB-1290: ------------------------------------------- I spoke to soon it does seem to be fixed in r1172741 will have to play with a bit more and see why i thought otherwise. > rewrite with variable and query option produces a badarg error > -------------------------------------------------------------- > > Key: COUCHDB-1290 > URL: https://issues.apache.org/jira/browse/COUCHDB-1290 > Project: CouchDB > Issue Type: Bug > Components: HTTP Interface > Affects Versions: 1.1, 1.2 > Environment: Linux geminiman 3.0.0-1-amd64 #1 SMP Sat Aug 27 16:21:11 UTC 2011 x86_64 GNU/Linux > Reporter: matthew o'gorman > Priority: Minor > > This bug is similar or is the old bug https://issues.apache.org/jira/browse/COUCHDB-1074 > way to expose. put in rewrites.json > [ { "from" : "foo/:blah", "to" : "_list/foo/foo", "query" : {"descending": true}}] > returns > wget http://localhost:5984/mydb/_design/mydb/_rewrite/foo/1 > {"error":"unknown_error","reason":"badarg"} > wget http://localhost:5984/mydb/_design/mydb/_rewrite/foo/string > {"error":"unknown_error","reason":"badarg"} > wget http://localhost:5984/mydb/_design/mydb/_rewrite/foo/true > {"error":"unknown_error","reason":"badarg"} > it doesnt matter whats passed. removing the query from the rewrite rule and it wont complain about badargs. tested on version 1.1 as well as trunk-r1172741 -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira