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

[UDF] scope level user cannot add external function

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 7.1.0
    • 7.1.0
    • UI
    • None
    • 7.1.0-2281
    • Untriaged
    • 1
    • Unknown

    Description

      IF user has scope level external function privilege only, user can add library but cannot add function:

       

      user1 has Manage Scopes [abucket:user1] , Query Select [abucket:user1:*] , Manage Scope External Functions [abucket:user1] , Execute Scope External Functions [abucket:user1] ... and can add via CLI:

      cbq> CREATE OR REPLACE FUNCTION default:abucket.user1.add() LANGUAGE JAVASCRIPT AS "add" AT "abucket:user1:math" ;
      {
          "requestID": "8d11f056-99c0-4a10-85b7-6a50550744d2",
          "signature": null,
          "results": [
          ],
          "status": "success",
       

      Attachments

        Issue Links

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

          Activity

            People

              pierre.regazzoni Pierre Regazzoni
              pierre.regazzoni Pierre Regazzoni
              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