On Feb 23, 2010, at 12:34 AM, Andrew Straw wrote:
> 
> I'm still getting Matt's initial problem, despite using the patched
> 0.11.x branch. Following his same procedure (fresh install of CouchDB,
> using Chromium incognito window), I see this:
> 
> [info] [<0.129.0>] 127.0.0.1 - - 'PUT' /_config/admins/astraw 200
> [info] [<0.129.0>] 127.0.0.1 - - 'POST' /_session 200
> [info] [<0.129.0>] 127.0.0.1 - - 'GET' /_session 200
> [info] [<0.129.0>] 127.0.0.1 - - 'GET' /_session 200
> [info] [<0.129.0>] 127.0.0.1 - - 'PUT' /_users/org.couchdb.user%3Aastraw 201
> 
> 
> But looking at the user doc of the _users db in futon, there's no
> "_admin" in the roles field. However, doing a get with curl on _session
> shows it. All of this testing is on a speedy local desktop machine
> (Ubuntu Karmic amd64).
> 

I should note that this is intentional. Roles beginning with _ are not 
permitted in the users db. The _admin role is assigned based on configuration 
data. It's still handy to have a user doc for admins, in cases where the admin 
user should have other roles as well, or for when applications want to store 
data on the user document.

Chris


> -Andrew

Reply via email to