processmaker
processmaker copied to clipboard
FOUR-17836 Fix error executing script with env variables with spaces
Issue & Reproduction Steps
The nayra executor fails to run when exists env variables with spaces.
Solution
- Replace space by undescore before to send the env variables to the executor
- Fix the ImportExport class for EnvVariables to use "_" instead of " "
- Add a test to validate the solution
How to Test
- Export a process with a script task that use environment variables
- Import it to the same server
- Choose the option as a copy
Related Tickets & Packages
- https://processmaker.atlassian.net/browse/FOUR-17836
Code Review Checklist
- [x] I have pulled this code locally and tested it on my instance, along with any associated packages.
- [x] This code adheres to ProcessMaker Coding Guidelines.
- [x] This code includes a unit test or an E2E test that tests its functionality, or is covered by an existing test.
- [x] This solution fixes the bug reported in the original ticket.
- [x] This solution does not alter the expected output of a component in a way that would break existing Processes.
- [x] This solution does not implement any breaking changes that would invalidate documentation or cause existing Processes to fail.
- [x] This solution has been tested with enterprise packages that rely on its functionality and does not introduce bugs in those packages.
- [x] This code does not duplicate functionality that already exists in the framework or in ProcessMaker.
- [x] This ticket conforms to the PRD associated with this part of ProcessMaker.
ci:next
Quality Gate passed
Kudos, no new issues were introduced!
0 New issues
0 Security Hotspots
50.0% Coverage on New Code
0.0% Duplication on New Code