exadel-inc / exadel-inc/CompreFace

Compreface-API rewrites my postgresql jdbc url

Open
#1,213 12 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
8.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

I supplied a custom jdbc url to my already running postgresql host. However the host name includes `postgresql` which gets rewritten into `psql` for some reason.

The `compreface-api` container image from version `0.6.0` until the latest has this issue, `0.5.1` works as intended.

Is that normal? Is there some code that replaces every string `postgresql` in the configuration by `psql`?

**To Reproduce**

Steps to reproduce the behavior:
1. Include `postgresql` in the host part of the environment variable `POSTGRES_URL`.
2. Profit

**Expected behavior**

My url is supposed to be used as-is, not overwritten by something I cannot control

`compreface-admin` does not have this issue, regardless of the version.

Contributor guide

Open the contributing guide

Research direction

Start by inspecting how the compreface-api container handles the POSTGRES_URL environment variable, then compare version 0.5.1 with 0.6.0 or later using a host containing `postgresql`. Compare this behavior with compreface-admin. Done means the supplied JDBC URL is used unchanged and the regression is verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, java, postgresql
Domain
backend, databases, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.