You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Marcos Zanona (JIRA)" <ji...@apache.org> on 2011/06/21 01:02:47 UTC

[jira] [Commented] (COUCHDB-1193) Inconsistent decoding of rewritten query parameters

    [ https://issues.apache.org/jira/browse/COUCHDB-1193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13052266#comment-13052266 ] 

Marcos Zanona commented on COUCHDB-1193:
----------------------------------------

I am trying with the following:

{
        "from" : "_view/model",
        "to": "_view/type",
        "query" : {
            "startkey" : ["test"],
            "endkey" : ["test_"],
            "group_level" : "1"
        }
}

it seems the group_level really doesn't change at all, actually it is acting really weird, it changes the first time, when you move back to the old value it doesn't change at all...really annoying :(


> 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
>              Labels: rewriter
>
>   {
>     "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