Skip to content

[Bug]: When starting the powermem-server using docker, if the password of the OceanBase database is wrapped in single quotes, the connection to the database fails #921

@Ripcord55

Description

@Ripcord55

Describe the bug

When starting the powermem-server using docker, if the password of the OceanBase database is wrapped in single quotes, the connection to the database fails
Image
Image

The actual password value in the Python process:
Image

Environment

powermem 1.1.1

Fast reproduce steps

  1. Download the docker package and docker load
  2. set OCEANBASE_PASSWORD='powermem'
  3. Command line execution:
python - <<'PY'
import os
print("OCEANBASE_PASSWORD =", repr(os.getenv("OCEANBASE_PASSWORD")))
PY

Expected behavior

Consistent with non-Docker environments, automatically remove the single quotes enclosing passwords

Actual behavior

N/A

Additional context

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions