Description
step:
1.created ddoc and view with the same names, inserted following code:
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function myFunction()
</script>
</head>
<body>
<input type="button" onclick="myFunction()" value="Show alert box" />
</body>
</html>
2. try to delete created ddoc
result:
redirect on the page home page and error is in the log:
Client-side error-report for user "Administrator" on node 'ns_1@127.0.0.1':
User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.52 Safari/536.5
Got unhandled error: Uncaught ReferenceError: myFunction is not defined
At: http://10.5.2.16:8091/index.html#deleteDDoc=&sec=views:1
Backtrace:
Function: collectBacktraceViaCaller
Args:
---------
Function: appOnError
Args:
"Uncaught ReferenceError: myFunction is not defined"
"http://10.5.2.16:8091/index.html#deleteDDoc=&sec=views"
1
---------
Attachments
For Gerrit Dashboard: MB-5466 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
17010,8 | MB-5466: added escaping for quotes | master | ns_server | Status: MERGED | +2 | +1 |