[patch] TicketWorkflowOpRunExternal will only work with .exe files on Windows
|Reported by:||anonymous||Owned by:||Eli Carter|
|Severity:||normal||Keywords:||run_external windows exe|
When using TicketWorkflowOpRunExternal to call an external script, the script path does not specify a file extension.
This means that in Windows, you get a 'This file is not a valid Win32 application' error when the script is called because without a file extension Windows treats it as an executable (.exe) file and tries to run it as a Windows executable.
A workaround is to create an executable (.exe) instead of a script, which Windows can execute without specifying the extension.
A fix could be to specify the file extension in the workflow options like so:
<someaction>.operations = run_external <someaction>.run_external = Hint to tell the user. <someaction>.extension = vbs
If the extension option is not set then it would behave as it already does meaning unix users need not change anything.
Change History (7)
comment:3 Changed 8 years ago by
|Summary:||TicketWorkflowOpRunExternal will only work with .exe files on Windows → [patch] TicketWorkflowOpRunExternal will only work with .exe files on Windows|