Skip to content

Fail early on auth errors in direct driver #373

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

Merged
merged 1 commit into from
May 18, 2017

Conversation

lutovich
Copy link
Contributor

This PR makes direct driver test connectivity on creation. It's done by opening and closing a connection. Previously driver did not try to connect during creation and auth errors (incorrect credentials, etc.) popped up only when first query was executed or first transaction was started. Such delayed errors were confusing. Also routing driver behaved differently because it fetches routing table at creation and auth errors come out of constructor.

This commit makes direct driver test connectivity on creation. It's
done by opening and closing a connection. Previously driver did not
try to connect during creation and auth errors (incorrect credentials,
etc.) popped up only when first query was executed or first
transaction was started. Such delayed errors were confusing. Also routing
driver behaved differently because it fetches routing table at creation
and auth errors come out of constructor.
@lutovich lutovich requested a review from zhenlineo May 18, 2017 10:28
@lutovich
Copy link
Contributor Author

Hi @inserpio, this PR will make driver created with bolt:// uri fail early when credentials are wrong.

@inserpio
Copy link

Hi @lutovich, thank you very much for taking care about that. I will change the JDBC driver accordingly to benefit of that.
Cheers, Lorenzo

@zhenlineo zhenlineo merged commit 24e6af1 into neo4j:1.3 May 18, 2017
@lutovich lutovich deleted the 1.3-direct-driver-auth-errors branch June 13, 2017 10:34
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.

3 participants