Skip to content

SLCORE-2200 Avoid error in H2: Wrong user name or password#1875

Open
nquinquenel wants to merge 1 commit intomasterfrom
bug/nq/SLCORE-2200-h2-wrong-password
Open

SLCORE-2200 Avoid error in H2: Wrong user name or password#1875
nquinquenel wants to merge 1 commit intomasterfrom
bug/nq/SLCORE-2200-h2-wrong-password

Conversation

@nquinquenel
Copy link
Member

@nquinquenel nquinquenel commented Mar 8, 2026

Potential explanation:

When a second instance (e.g. another IDE window) tries to connect to the database, it uses TCP to connect to the initially started H2 server. The H2 driver uses the exact database path string from the JDBC URL as part of the password hashing process.

On OS like Windows where paths are case insensitive, it's possible for different processes to resolve the storage directory with slightly different string casings (e.g. C:... vs c:...). The lock file is read correctly since the file system is case-insensitive, but the TCP connection fails because the hashed password sent by the client (hashed with c:) doesn't match what the server expects (hashed with C:).

@hashicorp-vault-sonar-prod
Copy link

hashicorp-vault-sonar-prod bot commented Mar 8, 2026

SLCORE-2200

@sonarqube-next
Copy link

sonarqube-next bot commented Mar 8, 2026

@nquinquenel nquinquenel marked this pull request as ready for review March 9, 2026 07:56
Copy link
Contributor

@damien-urruty-sonarsource damien-urruty-sonarsource left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not very comfortable trying a blind fix, but let's give it a try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants