Skip to content

Etherpad: Settings.json malformed when environment variable contains double quote #20

@pawohl

Description

@pawohl
There was an error processing your settings.json file: Unexpected string

is what you get when starting with, e.g.

docker run -d \
    --network ep_network \
    -e ETHERPAD_TITLE="The \"Etherpad" \
    -e ETHERPAD_DB_HOST=ep_mysql \
    -e ETHERPAD_DB_PASSWORD=password \
    -p 9001:9001 \
    tvelocity/etherpad-lite

A simple workaround is to double escape the quotes, however isn't yet documented and feels unintuitive. #19 has code delegating JSON formatting to nodejs. Attempting to JSON-encode in bash directly isn't working that well.

Additionally an extra comma is left in some situations right after the dbSettings, which isn't allowed by the JSON specification (etherpad works with them).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions