You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Nathan Vander Wilt (Commented) (JIRA)" <ji...@apache.org> on 2011/12/07 20:36:40 UTC
[jira] [Commented] (COUCHDB-1290) rewrite with variable and query
option produces a badarg error
[ https://issues.apache.org/jira/browse/COUCHDB-1290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13164645#comment-13164645 ]
Nathan Vander Wilt commented on COUCHDB-1290:
---------------------------------------------
Is this a dupe of [#COUCHDB-1193]?
> 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.
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