Using filter with _changes throws errors if the filter sees a deleted document
------------------------------------------------------------------------------
Key: COUCHDB-480
URL: https://issues.apache.org/jira/browse/COUCHDB-480
Project: CouchDB
Issue Type: Bug
Components: HTTP Interface
Environment: OS X 10.5.5, Erlang R13B01 (5.7.2)
Reporter: Joseph Kocherhans
Attachments: change-filter-test.js
The following error seems to happen if a _changes filter function is called
with a deleted document:
[error] [<0.9124.0>] Uncaught error in HTTP request:
{error,{badmatch,{not_found,deleted}}}
[info] [<0.9124.0>] Stacktrace:
[{couch_httpd_db,'-make_filter_funs/2-fun-2-',4},
{couch_httpd_db,'-changes_enumerator/2-lc$^2/1-0-',2},
{couch_httpd_db,changes_enumerator,2},
{couch_btree,stream_kv_node2,7},
{couch_btree,fold,5},
{couch_httpd_db,send_changes,6},
{couch_httpd_db,handle_changes_req,2},
{couch_httpd_db,do_db_req,2}]
[debug] [<0.9124.0>] httpd 500 error response:
{"error":"badmatch","reason":"{not_found,deleted}"}
Tests forthcoming.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.