Re: can't set permissions on databases from PHP, help will be much appreciated.

2018-09-21 Thread Rene Veerman
fixed it :) i was using the wrong parameter into one of the components used by php-couchdb. very happy i was able to solve this one in just a few minutes of course. i've uploaded my improved sources to gitlab. links are in the opening post of this thread. thx for the help :) On Fri, Sep 21, 201

Re: can't set permissions on databases from PHP, help will be much appreciated.

2018-09-21 Thread Rene Veerman
thanks. it did work via the command-line. rene@crow:~$ curl -X PUT $db/sa_tree__administrator/_security -d @- { "admins": { "names": [], "roles": [] }, "members": { "names": ["Administrator"], "roles": [] } } {"ok":true} so i'll have to dig into t

Re: can't set permissions on databases from PHP, help will be much appreciated.

2018-09-19 Thread Joan Touzet
Hi Rene, Usually the no_majority error means your _security object is invalid. See this bug: https://github.com/apache/couchdb/issues/1384 Are you able to re-do your example without PHP, from cURL and the command line directly, so we can rule out any PHP-specific bugs? -Joan - Original Me