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

JS UDF: internal javascript functions are disabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 7.6.0
    • 7.6.0
    • js-evaluator
    • None
    • 7.6.0-1881
    • Untriaged
    • 0
    • Yes

    Description

      To repro simply run following create and should see error

      cbq> create or replace function f1() LANGUAGE JAVASCRIPT as 'function f1(a) {return a*10}';
      {
          "requestID": "cfc8c18f-85b1-47dc-83ad-725ee81f4519",
          "errors": [
              {
                  "code": 3000,
                  "column": 86,
                  "line": 1,
                  "msg": "internal javascript functions are disabled - line 1, column 86, near '...f1(a) {return a*10}'', at: ;"
              }
          ],
          "status": "fatal", 

      Attachments

        Issue Links

          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:

                PagerDuty