Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-22383

JavaScript Automation is not updated during hot-reload

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 9.1
    • Fix Version/s: 9.2
    • Component/s: Automation

      Description

      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)

        Attachments

        1. patch-NXP-22383-9.1.txt
          7 kB
          Anahide Tchertchian

          Issue Links

            Activity

              People

              • Votes:
                5 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days
                  2d