-
Bug Report
-
Resolution: Fixed
-
L3 - Default
-
7.17.0
-
None
Environment (Required on creation):
- Latest 7.17 snapshot
- Tested on MacOS
Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):
If the folder from which you start Camunda Run has blank spaces, then the run.sh script isn't able to create a run.pid file. The file is used to shut down Camunda Run when running in detached mode.
E.g. camunda-bpm-run-ee-7.17.0-20220308.095722-125 2
Steps to reproduce (Required on creation):
- Start the latest snapshot of Run with a blank space in the folder name.
- Once it's started, enter the shutdown script (shutdown.sh)
Observed Behavior (Required on creation):
Notice in the logs that it mentions 'Ambiguous redirect'. See screenshot
Also, notice a message that says 'There is no instance of Camunda Run to shut down.'
Expected behavior (Required on creation):
The run.sh script is able to create a run.pid file. The shutdown.sh script works and the shutdown is completed.
Root Cause (Required on prioritization):
The BASEDIR variable stores the path to the run.sh script (ref). If there is whitespace, it is not escaped. Non-escaped path strings don't play well with other shell commands (like file creation).
Solution Ideas (Optional):
The BASEDIR path has escaped whitespaces.