]
Tristan Tarrant commented on ISPN-6787:
---------------------------------------
"console" is definitely not an object available in a script context.
We definitely need to add a "log" binding to achieve something similar.
Without a proper script this is an invalid bug.
Administration console - launching javascript tasks doesn't work
----------------------------------------------------------------
Key: ISPN-6787
URL:
https://issues.jboss.org/browse/ISPN-6787
Project: Infinispan
Issue Type: Bug
Components: JMX, reporting and management
Reporter: Roman Macor
Attachments: Screenshot-launch-javascript.png
Steps to reproduce:
upload javascript
- click on cache container -> Configuration -> Tasks -> Create new script
- fill in the mandatory parameter (e.g. Task name: simpleTask, Language: javascript,
Execution mode: local, script body: console.debug("test"))
- click create script task button
run the script:
- click on cache container -> Tasks execution -> Launch new task
- fill in the mandatory parameter (e.g. Task: simpleTask, cache: localCache, originator
node: master/server-one)
- click Launch task button
result:
console shows error:
Error Some unexpected problem happened when launching the task: DGISPN0118: Failed to
invoke operation: ISPN026003: Script execution error
web browser console shows:
POST XHR
http://admin:adminPass9!@localhost:9990/management [HTTP/1.1 401 Unauthorized
23ms]