<!--- Provide a general summary of the issue in the Title above -->
Refer : https://issues.apache.org/jira/browse/COUCHDB-3373

## Expected Behavior
<!--- If you're describing a bug, tell us what should happen -->
<!--- If you're suggesting a change/improvement, tell us how it should work -->
```
> curl -X POST -H 'Content-Type: application/json' 
> 'http://localhost:5984/couchbase-test-notes/_changes?feed=normal&style=all_docs&filter=filterFuncs/ownerFilter&owner=Gunderson'
{"results":[
{"seq":"7-g1AAAAB5eJzLYWBgYMpgTmEQTM4vTc5ISXLIyU9OzMnILy7JAUklMiTV____PyuRAY-iPBYgydAApP6D1GYwJ7LnAgXYk1LMUg2S0rDpywIA-MYnAQ","id":"Gunderson-ThrowAway-faafcfac-4942-4c72-a6c3-27a0c3f68183","changes":[{"rev":"3-bf8d32e5dbc3417d737e6d1146da1879"}],"deleted":true},
.
.
.
],
"last_seq":"81-g1AAAACbeJzLYWBgYMpgTmEQTM4vTc5ISXLIyU9OzMnILy7JAUklMiTV____PyuDOVEmFyjAnmiZlmqalIZNAx5j8liAJEMDkPoPNc0UbFpSilmqAXbTsgC8KjHi","pending":0}
```

## Current Behavior
{"error":"error","reason":"timeout"}

## Steps to Reproduce (for bugs)
If the filter is anything other than _docs_ids and Request type is POST, 
request timed out error is thrown

```
curl -X POST \
  'http://localhost:5984/db/_changes?filter=syncFilters/channel-filter' \
  -H 'Authorization: Basic ZGhxLWFkbWluOno0NlprOUxkV3Y1VXNkcU0=' \
  -H 'Cache-Control: no-cache' \
  -H 'Content-Type: application/json' \
  -H 'Postman-Token: ab4cd8bd-b1c9-4a4a-a181-6163266ec426' \
  -d '{
        "channel_id": 108
}'
```

## Context
I want to pass the filter params in POST body, since GET body has size 
limitation. My filter param is very lengthy hence I am using POST request with 
_changes endpoint

## Your Environment
<!--- Include as many relevant details about the environment you experienced 
the bug in -->
* Version used: 2.1.1
* Operating System and version (desktop or mobile): Ubuntu


[ Full content available at: https://github.com/apache/couchdb/issues/1606 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to