Once I started to put public fields in configuration file, "doc" field was not null anymore.
2016-10-05 10:44 GMT+02:00 max <[email protected]>: > Correction: > > I have also noticed that when I try to get this view **without** auth, > couchdb answer is "only admin are..." but couchdb should ask me for > credentials since "require_valid_user" is true. Is this normal ? > > 2016-10-05 10:00 GMT+02:00 max <[email protected]>: > >> Hi, >> >> I'm using a View to fetch documents from _users database but when I query >> it with "include_docs=true", the doc field is "null". >> >> Some configuration properties: >> authentication_db : _users >> require_valid_user : true >> use_users_db : true >> >> I have also noticed that whane when I try to get this view with auth, >> couchdb answer is "only admin are..." but couchdb should ask me for >> credential since "require_valide_user" is true. Is this normal ? >> >> Thanks for couchdb 2.0 it's awesome. >> >> Max. >> >> PS: let me know if there is a way to use view with the public _users >> fonctionnality or at least to fetch a set of users from _users using or not >> the public part >> > >
