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:[email protected]:5984/briantest/_admins
{"names":["brianadmin"],"roles":[]}

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

$ curl http://brianadmin:[email protected]:5984/briantest/foo
{"_id":"foo","_rev":"2-7051cbe5c8faecd085a3fa619e6e6337"}

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

$ curl -X POST -d '{}' http://admin:[email protected]: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.

Reply via email to