Resolution: Not a Bug
# uname -a
Linux couch01 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u1 (2019-09-20) x86_64 GNU/Linux
# couchbase-server -v
Couchbase Server 6.5.0-0000 (CE)
# built from source on Sat 23 Nov 2019 08:40:14 AM PST
Seems like fix for
MB-32244 breaks existing exported configurations that do not have new "language_compatibility" field which is counter intuitive since this is a backward compatibility feature.
This issue will impact customers the rely on the CLI for eventing (cURL or couchbase-cli).
Importing saved Eventing Handlers via the CLI will no longer work (but the UI will)
we use 'verifier_01w_inst01.json' for curl and 'verifier_01w_inst01.json2' for couchbase-cli as the two CLI export-then-import modes do not seem to be cross compatible. But that is another issue for a future dat.
The attached Eventing Handler/Function was created under 6.5 (source build a 11 days ago) it has been importing fine for several days. However I know have the above error.
Note using the UI the imported function will get a 'tag' or new setting of 6.5.0 (under Settings/Language compatibility). So it appears that this logic is in the UI not in shared code that underlies both the UI and the CLI.
If we edit the exported files, e.g. 'verifier_01w_inst01.json' for curl and 'verifier_01w_inst01.json2', and add the missing directive we can indeed use both cURL and couchbase-cli to import the function.
Now we can do one of the following: