Skip to content

fix(informix): make INFORMIXSERVER URL rewrite idempotent to avoid ever-growing JDBC URL on reconnect - #2289

Merged
openai0229 merged 2 commits into
OtterMind:mainfrom
HandSonic:fix/review-informix
Jul 28, 2026
Merged

fix(informix): make INFORMIXSERVER URL rewrite idempotent to avoid ever-growing JDBC URL on reconnect#2289
openai0229 merged 2 commits into
OtterMind:mainfrom
HandSonic:fix/review-informix

Conversation

@HandSonic

@HandSonic HandSonic commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Problem

InformixDBManager.getConnection appended ":INFORMIXSERVER=<service>" to connectInfo.url on every call. ConnectInfo is shared and reused across reconnects, so each reconnect appended another INFORMIXSERVER segment — the JDBC URL grew without bound (...:INFORMIXSERVER=a:INFORMIXSERVER=a:...) and eventually broke connectivity.

Fix

Append the server attribute only when the URL does not already contain INFORMIXSERVER=, and only mutate connectInfo in that case — making the rewrite idempotent.

Tests

New InformixDBManagerTest (3 tests) covers first-connect append and idempotent reconnect. mvn test on chat2db-community-informix: 3/3 pass.


Verified on fork HandSonic#13 (meaningful CI checks green; dependency-review/project-sync jobs are fork-permission noise). Regression tests pass; adversarial review cleared.

…er-growing JDBC URL on reconnect (code review follow-up)
@openai0229
openai0229 merged commit a9a93b8 into OtterMind:main Jul 28, 2026
15 of 16 checks passed
@openai0229 openai0229 moved this from In Review to Done in Chat2DB Community Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants