Uploaded image for project: 'Couchbase Gateway'
  1. Couchbase Gateway
  2. CBG-221

Admin/User views cannot handle both xattr and non-xattr simultaneously

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Critical
    • 2.6.0
    • 2.0.0
    • SyncGateway
    • Security Level: Public
    • None
    • CBG Sprint 16, CBG Sprint 17, CBG Sprint 18, CBG Sprint 19
    • 5

    Description

      Expected behavior

      Admin or user created views are able to handle both mobile docs with extended attributes or docs with mobile metadata in the body.

      Actual behavior

      Admin or user created views can only handle the document types (xattr vs body) specified in the Sync Gateway config at the time that the view was created.
      This is undesirable as it can cause situations where the result set of the views will be incomplete once the import process has begun and there's no way to get a consistent dataset.
      Even ignoring this, it means that you would have to re-deploy your view after enabling shared_bucket_access and import.

      Steps to reproduce

      1. Turn on Sync Gateway with shared_bucket_access and import disabled
      2. Add some documents to Sync Gateway
      3. Create an admin view using Sync Gateway
      4. Enable shared_bucket_access and import
      5. Begin to query your view and check the result set, notice how this is incomplete

      Migrated from https://github.com/couchbase/sync_gateway/issues/3913

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jacques.rascagneres Jacques Rascagneres
            ben.brooks Ben Brooks
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty