Daniel Wertheim created COUCHDB-3331:
----------------------------------------

             Summary: ETag not returned for GET against view
                 Key: COUCHDB-3331
                 URL: https://issues.apache.org/jira/browse/COUCHDB-3331
             Project: CouchDB
          Issue Type: Bug
            Reporter: Daniel Wertheim


Upgrading client library to be compatible with 2.0. When running tests it fails 
since I no longer get {{ETag}} in the response headers when performing {{GET}} 
against a view index.

Map function:

{code}
function(doc) {
    if (doc.$doctype !== 'artist') return;
    emit(doc.name, null);
}
{code}

Request:

{code}
GET /mycouchtests_pri/_design/artists/_view/name_no_value?include_docs=true 
HTTP/1.1
Host: dev01:5984
Authorization: Basic ZGV2OjFxMnczZTRy
Cache-Control: no-cache
{code}

Response headers:

{code}
Cache-Control →must-revalidate
Content-Type →application/json
Date →Sun, 19 Mar 2017 09:32:03 GMT
Server →CouchDB/2.0.0 (Erlang OTP/17)
Transfer-Encoding →chunked
X-Couch-Request-ID →61ce66d480
X-CouchDB-Body-Time →0
{code}




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to