Details
-
Feature
-
Status: Released (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
Current Situation
- The CommandFragment element is used to execute operating system commands.
- The system commands are executed using the Java Process API.
- The CommandFragment Notification interface does not explicitly set the working directory of the execution content.
- This means that the Process API uses the value of the system property user.dir.
- This property is set to the same value as jetty.base during the default JOC installation.
Desired Behaviour
- To ensure that commands run in an environment appropriate for the JOC Cockpit service user, the CommandFragment Notification Interface (underlying Process API) should use the java.io.tmpdir system property.
- This corresponds to the JETTY_BASE/temp directory.