couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Candler <B.Cand...@pobox.com>
Subject Re: DB ACLs (was Re: 0.11 Release / Feature Freeze for 1.0)
Date Tue, 09 Feb 2010 10:00:53 GMT
Unless I'm doing something daft, it seems that readeracl is blocking me from
accessing _temp_view, even as a database admin or a system admin.

$ curl http://brianadmin:brianadmin@127.0.0.1:5984/briantest/_admins
{"names":["brianadmin"],"roles":[]}

$ curl http://brianadmin:brianadmin@127.0.0.1:5984/briantest/_readers
{"names":["brian","brianadmin"],"roles":[]}

$ curl http://brianadmin:brianadmin@127.0.0.1:5984/briantest/foo
{"_id":"foo","_rev":"2-7051cbe5c8faecd085a3fa619e6e6337"}

$ curl -X POST -d '{}' http://brianadmin:brianadmin@127.0.0.1:5984/briantest/_temp_view
{"error":"unauthorized","reason":"You are not authorized to access this db."}

$ curl -X POST -d '{}' http://admin:admin@127.0.0.1:5984/briantest/_temp_view
{"error":"unauthorized","reason":"You are not authorized to access this db."}

Even going back to Admin Party it doesn't work:

$ curl -X POST -d '{"map":"function(doc) {}"}' http://127.0.0.1:5984/briantest/_temp_view
{"error":"unauthorized","reason":"You are not authorized to access this db."}

However I'm a bit perplexed as to why view_errors.js in the test suite is
still passing.

Regards,

Brian.

Mime
View raw message