First check out our main documentation site at https://openc3.com.
Describe the bug
Using PATH as a variable name in a hash input to runScript results in a HTTP 500 error
To Reproduce
Steps to reproduce the behavior:
General:
Followed the guidance from https://docs.openc3.com/docs/configuration/telemetry-screens#button, except used the key PATH in the environment variable
- Create a screen with the following button definition
BUTTON 'Enable Packet' "var env = {};"
"env['PATH'] = 'test';"
"runScript('TEMP/2025_05_28_08_52_41_690_temp.rb', true, env)"
- Run the screen and click the button
- See the following error
"Network error: HTTP 500 - Internal Server Error {"environment":[{"key":"PATH","value":"test","readonly":false}]}"
- Edit the screen and change the PATH key to PATH0 to resolve the issue
Expected behavior
Would expect either an error indicating that PATH is a reserved word, or documentation pointing to any reserved words in variable definition.
Screenshots
N/A
Environment (please complete the following information):
- OS: [Server: Rocky Linux 9.5, Client: Windows 11]
- OpenC3 COSMOS Version 6.4.1
- Browser: Chrome
First check out our main documentation site at https://openc3.com.
Describe the bug
Using PATH as a variable name in a hash input to runScript results in a HTTP 500 error
To Reproduce
Steps to reproduce the behavior:
General:
Followed the guidance from https://docs.openc3.com/docs/configuration/telemetry-screens#button, except used the key PATH in the environment variable
BUTTON 'Enable Packet' "var env = {};"
"env['PATH'] = 'test';"
"runScript('TEMP/2025_05_28_08_52_41_690_temp.rb', true, env)"
"Network error: HTTP 500 - Internal Server Error {"environment":[{"key":"PATH","value":"test","readonly":false}]}"
Expected behavior
Would expect either an error indicating that PATH is a reserved word, or documentation pointing to any reserved words in variable definition.
Screenshots
N/A
Environment (please complete the following information):