Skip to content
This repository was archived by the owner on Jul 6, 2023. It is now read-only.

Conversation

@henriknyman
Copy link
Collaborator

When the ping query fails, e.g. on credentials expired exception,
we still need to get the server version.

  • Add handling of empty version string

When the ping query fails, e.g. on credentials expired exception,
we still need to get the server version.

- Add handling of empty version string
Copy link
Collaborator

@pontusmelke pontusmelke left a comment

Choose a reason for hiding this comment

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

The fix is fine, I don't understand why we throw the first time though?

try {
summary = run.consume();
} finally {
// Since run.consume() can throw the first time we have to go through this extra hoop to get the summary
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why? Is this known/documented behavior?

Copy link
Collaborator Author

@henriknyman henriknyman Nov 22, 2019

Choose a reason for hiding this comment

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

Hmm, it throws because it is not authorized to execute the ping query when password change is required in 4.0 anymore. It just started happening when packaged with the very latest Neo4j, but I wonder wether this really changed that recently. Maybe the neo4j docker image that is used to run integration tests is too far behind or there is some problem with the Team City test config parameters for 4.0.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@pontusmelke Ideally we want to get the version and database name by the simplest possible Bolt message or command that is always allowed to run (at least if authenticated), instead of having to execute an actual query, but this should do until we get Neo4j server support and/or driver support.

@henriknyman henriknyman merged commit 6e2583a into neo4j:4.0 Nov 22, 2019
@henriknyman henriknyman deleted the 4.0-fix-version-on-password-change branch November 22, 2019 13:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants