couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoit Chesneau <bchesn...@gmail.com>
Subject Re: [jira] [Created] (COUCHDB-1193) Inconsistent decoding of rewritten query parameters
Date Fri, 10 Jun 2011 14:00:14 GMT
On Friday, June 10, 2011, Johannes J. Schmidt (JIRA) <jira@apache.org> wrote:
> 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
>

or use format. format { limit: "int" }

Mime
View raw message