Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-51528

Update permissions for Query Nav Menu Item visibility

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 7.1.0
    • 7.1.0
    • UI
    • Triaged
    • 1
    • Yes
    • UI 2022-Feb

    Description

      A user with Query Select [*:*:*] can see the Query Workbench Tab from 7.0.x, but not from Neo

      In 7.0.x:

      The query Tab will always display due to a lexer issue with curly apostrophes, which means the condition will always evaluate to true.

      ngShow: "rbac.cluster.collection[‘.:.:.‘].data.docs.read && rbac.cluster.collection[‘.:.:.’].collections.read"

       

      Error: [$parse:lexerr] Lexer Error: Unexpected next character  at columns 24-24 [‘] in expression [rbac.cluster.collection[‘.:.:.‘].data.docs.read && rbac.cluster.collection[‘.:.:.’].collections.read]. 

       

      The ngShow will evaluate this as true, displaying the tab regardless of the permissions.

      This has since been fixed in Neo, but the Query Tab will no longer show for a user with just Query Select [*:*:*], as they won't have rbac.cluster.collection[‘.:.:.’].collections.read

      We need to modify the conditions needed for the ngShow so that a user with just Query Select [*:*:*] will still see the tab.

       

      Attachments

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

        Activity

          People

            pierre.regazzoni Pierre Regazzoni
            matthew.dawber Matthew Dawber (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty