Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.0.0
-
None
Description
Views in the authentication DB on the clustered interface are currently broken. The reason is because ddoc_cache tries to open views with no admin context and so falls foul of the special design doc restriction on the authentication DB.
We can fix this by having ddoc_cache always use ?ADMIN_CTX and then teaching fabric to call couch_db_users:after_doc_read/2. We then also need to update couch_index_server to use ?ADMIN_CTX so that any background jobs can access the design docs in the authentication DB (e.g. view compaction).