-
Notifications
You must be signed in to change notification settings - Fork 792
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compreface-API rewrites my postgresql jdbc url #1213
Comments
We don't do any replacements on our side. We use Java Spring for data connection and pass this variable straight to Spring: |
While I'm not familiar with spring. I'm using a lot of projects that use JDBC and this is the first time I've ever had this issue with my setup... |
Actually i have same problem and this is logerror from api |
Can tell, that when i renamed the service and the namespace, ( was also postgresql ) everything worked as it should for api also. |
you can see all postgresql was replaced with pgsql |
@newbenji I have only managed to circumvent it by adding another Kubernetes service, you know, just like an alternate dns, it works. |
Did the same, but sadly also needed new namespace. was postgresql :-D |
as you've understood, it really overwrites any string postgresql in the provided url, probably to correct the protocol (e.g replace postgresql://.... by psql://....) |
actually its not looking at :// |
But weird it dosnt happen for admin |
Hi, I have encountered the same issue as described in this thread. After investigating the cause, I believe the following code is responsible: NotificationDbConfig.java#L15 It seems that this part of the code is causing the problem. Could you please take a look into this? Thank you! |
@pospielov could you see if it can be removed or modified? Why is it necessary for this commit: f9f0f33 ? |
Describe the bug
I supplied a custom jdbc url to my already running postgresql host. However the host name includes
postgresql
which gets rewritten intopsql
for some reason.The
compreface-api
container image from version0.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 bypsql
?To Reproduce
Steps to reproduce the behavior:
postgresql
in the host part of the environment variablePOSTGRES_URL
.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.The text was updated successfully, but these errors were encountered: