You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "James Mark Mackenzie (JIRA)" <ji...@apache.org> on 2015/10/09 15:38:26 UTC
[jira] [Created] (COUCHDB-2847) list function + no rows return 500
James Mark Mackenzie created COUCHDB-2847:
---------------------------------------------
Summary: list function + no rows return 500
Key: COUCHDB-2847
URL: https://issues.apache.org/jira/browse/COUCHDB-2847
Project: CouchDB
Issue Type: Bug
Security Level: public (Regular issues)
Reporter: James Mark Mackenzie
A list function applied to a view with no rows returned results in a 500 response from the server.
Steps to reproduce:
1) PUT /db
2) PUT /db/_design/ddoc
3) GET /db/ddoc/_list/simple_row_render/list_animal_ids
The system reponeds with:
{u'reason': u'undef', u'ref': 902602498, u'error': u'unknown_error'}
Ddoc:
{noformat}
{"_id": "_design/ddoc",
"views": {"list_animal_ids": {"map": "function(doc) {if(doc._id){emit(doc._id, null);}}"}},
"lists": {"simple_row_render": "function(head, req) {var row; while(row=getRow()) {send(JSON.stringify(row)); }}"}}
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)