You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "Ondřej Novák (JIRA)" <ji...@apache.org> on 2017/04/21 08:12:04 UTC

[jira] [Commented] (COUCHDB-3331) ETag not returned for GET against view

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

Ondřej Novák commented on COUCHDB-3331:
---------------------------------------


Unfortunately this is WAI. CouchDB 2.0 no longer support ETags for views. I hope they find solution for this asap, because it degrades caching complete. As workaround you can use list function to emulate this feature since the list function can control what appears in the respone.

(And because it can be emulated, it should be easy to resolve this issue in future version)

Ondrej Novak (I am not developer)

> 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.
> Docs says it should: http://docs.couchdb.org/en/2.0.0/api/ddoc/views.html?highlight=etag
> 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)