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

[3.1.2 Backport] Inherited channels from roles are not checked when running changes feed filtered to a channel

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.1.2
    • 3.1.0, 3.1.1, 3.1.1.1
    • SyncGateway
    • Security Level: Public
    • None
    • CBG Sprint 138
    • 1

    Description

      Repro steps:

      1. Create role with collection access to channel A
      2. Create user with the role just created assigned to it
      3. Put some docs in database with channel A assigned
      4. Run changes feed as the user created with filter for channel A, the changes feed is empty and we get that logging to say the user doesn't have access to channel A (although we do through the role assigned to the user)

      FilterToAvailableCollectionChannels doesn't check against inherited collection access from roles the user has been assigned. Regression in 3.1+, test passes fine in 3.0.9 

      Attachments

        Issue Links

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

          Activity

            People

              gregory.newmansmith Gregory Newman-Smith
              ben.brooks Ben Brooks
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty