Details
-
Bug
-
Resolution: Fixed
-
Major
-
4.6.2
-
None
Description
When uploading views from a Curl or client, the REST interface should return an error if the same view can not be created from the UI.
example:
function (doc, meta) {
|
var comps = meta.id.split(".");
|
if(comps.length > 1) {
|
if(comps[0] == 'A' && comps[1]= 'B') {
|
emit(meta, doc.created)
|
}
|
}
|
}
|
from the UI has the error:
Syntax error in the map function of the view `test': ReferenceError: Invalid left-hand side in assignment (line 4:10)
|
This will prevent invalid views from being loaded into the system.