Skip to content

[Bug] Environment variable with a $ bug on save #2363

@Dysta

Description

@Dysta

Describe the bug

A clear and concise description of what the bug is.

There is a weird issue with environment variable set in CasaOS. If an environment contain a $, each save from the settings will multiply the $ time 2.

To Reproduce

Steps to reproduce the behavior:

  1. Install an app from a docker-compose.yaml
  2. Once the app is on the App panel, open the Settings
  3. Setup an environment variable with a $ in it, for example MY_PASSWORD_APP=super$ecret!
  4. Click save and wait for the app to be up again
  5. Reopen the Settings panel
  6. See that the $ in the input field have been multiplied

Expected behavior

A clear and concise description of what you expected to happen.
The $ shouldn't be duped

Screenshots

If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

 - OS: Linux Ubuntu Server 24.04 LTS
 - Browser: Firefox
 - Version: Latest

System Time

Run timedatectl and share the output

               Local time: mer. 2025-10-01 08:50:50 UTC
           Universal time: mer. 2025-10-01 08:50:50 UTC
                 RTC time: mer. 2025-10-01 08:50:50
                Time zone: Etc/UTC (UTC, +0000)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

Logs

Run following command to collect corresponding logs:

sudo journalctl -xef -u casaos-gateway
sudo journalctl -xef -u casaos-user-service
sudo journalctl -xef -u casaos-local-storage
sudo journalctl -xef -u casaos-app-management
sudo journalctl -xef -u casaos.service

Additional context

Add any other context about the problem here.

If you are a Zimaboard user, make it explicit with when you got your Zimaboard.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions