Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-2738

Allow views in the auth DB to be accessed by administrators on the clustered interface

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • View Server Support
    • 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).

      Attachments

        Activity

          People

            Unassigned Unassigned
            mikewallace Mike Wallace
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: