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

Eventing function scope is silently ignored by pre-7.1 servers

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • eventing
    • None
    • Untriaged
    • 0
    • Unknown

    Description

      The Eventing Service introduced the concept of eventing function scope in Couchbase Server 7.1. A user of the HTTP API assigns a scope to a function by including a "function_scope" field in the JSON representation when creating or updating a function.

      When a version of Couchbase Server prior to 7.1 receives this JSON, it silently ignores the "function_scope" field. This results in the function being created in the admin scope instead of the scope the user specified.

      In general, the SDKs throw a `FeatureNotAvailable` exception if the user attempts an operation not supported by their version of Couchbase Server. However, in this case there is no indication the function scope was ignored. This makes it impractical for an SDK to notify a user they've done something wrong.

      Attachments

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

        Activity

          People

            santosh.hegde Santosh Hegde
            david.nault David Nault
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty