Details
-
Bug
-
Status: Closed (View Workflow)
-
P2
-
Resolution: Done
-
4.1.0
-
CP: sprint 96
-
1.5
-
Core: Platform
-
Q3 2020
Description
Set DB_PASSWORD to a value that contains %p and/or %c:
curl -w '\n' -D - -d '{"name":"DB_PASSWORD","value":"uvwxyz%p%c"}' http://localhost:9130/_/env
https://github.com/folio-org/okapi/blob/v4.1.0/okapi-core/src/main/java/org/folio/okapi/service/impl/DockerModuleHandle.java#L320
replaces %p by hostPort and %c by containerHost. This breaks the credentials, PostgreSQL login fails.
The spec is in the guide: https://github.com/folio-org/okapi/blob/master/doc/guide.md#deployment
The port is passed as %p in the value of properties exec and cmdlineStart.
The value of containerHost can be referred to as %c in dockerArgs of the deployment.
Task:
Replace % variables in exec, cmdlineStart and dockerArgs values only.