Skip to content

Using PATH as a variable name in a hash input to runScript results in a HTTP 500 error #2090

@jonvadney

Description

@jonvadney

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

  1. 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)"
  2. Run the screen and click the button
  3. See the following error
    "Network error: HTTP 500 - Internal Server Error {"environment":[{"key":"PATH","value":"test","readonly":false}]}"
  4. 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

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions