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

ASF GitHub Bot commented on COUCHDB-3254:
-----------------------------------------

GitHub user Murgeye opened a pull request:

    https://github.com/apache/couchdb-chttpd/pull/152

    Fix missing ampersand in rewritten queries

    Fix related to issue https://issues.apache.org/jira/browse/COUCHDB-3254

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/Murgeye/couchdb-chttpd master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/couchdb-chttpd/pull/152.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #152
    
----
commit cb0f20ea0898cd24ff8ac0617b326874088d9157
Author: Fabian Ising <[email protected]>
Date:   2016-12-08T14:58:32Z

    Fix missing ampersand in rewritten queries

----


> Rewrite function breaks multiple parameters
> -------------------------------------------
>
>                 Key: COUCHDB-3254
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-3254
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Database Core, HTTP Interface
>         Environment: Couchdb version: v. 2.0.0
>            Reporter: Fabian
>
> Using a rewrite rule on a view with multiple parameters doesn't work as the 
> resulting URL seems to be missing ampersands between the parameters. When 
> using the _design document below and a URL like 
> http://localhost:5984/database_name/_design/test/_rewrite/views/_view/view_name
>  the following error occurs:
> bq.{"error":"query_parse_error","reason":"Invalid boolean parameter: 
> \"truekey=null\""}
> Minimal _design document:
> {
>       "_id": "_design/test",
>        "language": "javascript",
>        "rewrites": "function(req) {return {path: 
> '../'+req.path.slice(4).join('/'),query: {'reduce': 'true','key': 'null'}}};"
> }
> Couchdb version: v. 2.0.0



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to