09-16-2021, 05:36 AM
(This post was last modified: 09-16-2021, 01:08 PM by LazyLeopard.)
Steps to reproduce bug or error:
1. From the project Configuration Widget Click on the trigger icon
2. Click the '+' icon to create a trigger
3. After providing a name, and event select "Run Serverside python/JS Code" - A button "script Editor"
4. After saving a script in scriptEditor
5. Press "Save" on the Create Trigger widget - An error alert appears along the lines of "script is empty"
Stack trace from exception log:
File "/opt/tactic/tactic/src/pyasm/command/command.py", line 267, in execute_cmd
ret_val = cmd.execute()
File "/opt/tactic/tactic/src/pyasm/prod/service/api_xmlrpc.py", line 287, in execute
self2.results = exec_meth(self, ticket, meth, args)
File "/opt/tactic/tactic/src/pyasm/prod/service/api_xmlrpc.py", line 317, in exec_meth
results = meth(self, ticket, *new_args)
File "/opt/tactic/tactic/src/pyasm/prod/service/api_xmlrpc.py", line 5879, in execute_cmd
Command.execute_cmd(cmd)
File "/opt/tactic/tactic/src/pyasm/command/command.py", line 267, in execute_cmd
ret_val = cmd.execute()
File "/opt/tactic/tactic/src/tactic/ui/tools/trigger_wdg.py", line 2340, in execute
raise TacticException("Your script is empty. Please save a valid script.")
Screenshots:
Version:
Using docker hub image from diegocortassa/tactic:latest
1. From the project Configuration Widget Click on the trigger icon
2. Click the '+' icon to create a trigger
3. After providing a name, and event select "Run Serverside python/JS Code" - A button "script Editor"
4. After saving a script in scriptEditor
5. Press "Save" on the Create Trigger widget - An error alert appears along the lines of "script is empty"
Stack trace from exception log:
File "/opt/tactic/tactic/src/pyasm/command/command.py", line 267, in execute_cmd
ret_val = cmd.execute()
File "/opt/tactic/tactic/src/pyasm/prod/service/api_xmlrpc.py", line 287, in execute
self2.results = exec_meth(self, ticket, meth, args)
File "/opt/tactic/tactic/src/pyasm/prod/service/api_xmlrpc.py", line 317, in exec_meth
results = meth(self, ticket, *new_args)
File "/opt/tactic/tactic/src/pyasm/prod/service/api_xmlrpc.py", line 5879, in execute_cmd
Command.execute_cmd(cmd)
File "/opt/tactic/tactic/src/pyasm/command/command.py", line 267, in execute_cmd
ret_val = cmd.execute()
File "/opt/tactic/tactic/src/tactic/ui/tools/trigger_wdg.py", line 2340, in execute
raise TacticException("Your script is empty. Please save a valid script.")
Screenshots:
Version:
Using docker hub image from diegocortassa/tactic:latest