[BP 7.0.4 MB-51362] - Warning if variable name contains builtin api name

Description

I have a 7.X function "basicLocalCurlGetWithTiming.json" that used to import and work fine.  I now get an error that says:

Function tries to overload following builtin API(s): curl

If I edit the javascript and global replace the word 

  • curl with rest

then replace

  • rest( with curl( for the actual function call

the issue goes away, not sure if it is the variable names, comments, or strings in he log calls.

Update: You can replace the variable do_curl with do_rest and the issue will also go away.

Components

Affects versions

Fix versions

Labels

Environment

None

Link to Log File, atop/blg, CBCollectInfo, Core dump

None

Release Notes Description

None

Activity

Sujay Gad April 7, 2022 at 10:24 AM

Verified the fix on Enterprise Edition 7.0.4 build 7241.

CB robot April 6, 2022 at 7:42 AM

Build couchbase-server-7.0.4-7239 contains eventing commit b33f091 with commit message:
https://couchbasecloud.atlassian.net/browse/MB-51497#icft=MB-51497: Fix overloaded functions regexpression

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Is this a Regression?

Unknown

Triage

Untriaged

Due date

Story Points

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created March 17, 2022 at 9:41 AM
Updated April 7, 2022 at 10:24 AM
Resolved April 6, 2022 at 6:39 AM
Instabug

Flag notifications