-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Cannot Reproduce
-
Affects Version/s: 9.1
-
Fix Version/s: 9.2
-
Component/s: Automation
-
Sprint:nxAT Sprint 9.2.3, nxcore 9.2.6
-
Story Points:3
JavaScript Automation is not deployed during hot-reload.
To reproduce:
- Have a brand new 9.1 tomcat (with JSF for the test via a user action)
- A Studio project
- Bind the server with this project
- Hot reload once to install the project
- Create an Automation Script. For example, test_problem, that accepts and returns void and juste log something:
function run(input, params) { Console.log("Hi there"); }
- Create a user action, that goes in User Menu and call this javascript
- Deploy
- Test
- Error:
2017-05-22 09:24:56,757 ERROR [http-bio-0.0.0.0-8080-exec-22] [org.nuxeo.ecm.automation.jsf.OperationActionBean] Failed to execute action: org.nuxeo.ecm.automation.OperationNotFoundException: No operation was bound on ID: javascript.test_problem
You must restart the server.
Notice : The same occurs when you modify an existing script of course (your changes are not deployed)