couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Newson (JIRA)" <>
Subject [jira] [Commented] (COUCHDB-1888) /_users/_all_docs?include_docs=true returns empty docs
Date Sun, 15 Sep 2013 14:34:52 GMT


Robert Newson commented on COUCHDB-1888:

This is caused by the new public_fields feature. I had thought that it defaulted to showing
all properties if not enabled, but that's demonstrably not the case. I'm not sure what the
best option here is. The oddness of public_fields is my fault at the time it was introduced
and also mine, again, for not fixing things before 1.4.0 was released. Hopefully this isn't
affecting too many people as the _users db is an internal detail in many cases and, where
not, folks generally want to expose a subset of fields anyway.

For now, you can do;

curl -XPUT localhost:5984/_config/couch_httpd_auth/public_fields -d '"_id,_rev,name,password_sha,password_scheme,iterations,name,roles,derived_key,salt"'
to expose all standard properties.

> /_users/_all_docs?include_docs=true returns empty docs
> ------------------------------------------------------
>                 Key: COUCHDB-1888
>                 URL:
>             Project: CouchDB
>          Issue Type: Bug
>    Affects Versions: 1.4.0
>            Reporter: Gregor Martynus
> {"total_rows":1,"offset":0,"rows":[
> {"id":"_design/_auth","key":"_design/_auth","value":{"rev":"1-619db7ba8551c0de3f3a178775509611"},"doc":{}}
> ]}
> On other databasese, "doc" gets returned properly

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message