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

        

Reply via email to