Inconsistent decoding of rewritten query parameters
---------------------------------------------------
Key: COUCHDB-1193
URL: https://issues.apache.org/jira/browse/COUCHDB-1193
Project: CouchDB
Issue Type: Bug
Components: HTTP Interface
Affects Versions: 1.1
Reporter: Johannes J. Schmidt
{
"from": "/",
"to": "_view/q",
"method": "GET",
"query": {
"limit": 30
}
}
(exact rule: http://pastebin.com/tjyR5e9R)
throws {"error":"unknown_error","reason":"badarg"}
(complete trace: http://pastebin.com/rKQgbmeq)
As daleharvey pointed out on irc, this is due to inconsitent JSON decoding of
query params. daleharvey suggests a fix like in
http://pastebin.me/0ed2942f6953cb00cab1bd53861c1568
A temporarily fix is to quote the parameters:
{
"from": "/",
"to": "_view/q",
"method": "GET",
"query": {
"limit": "30"
}
}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira