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

Conversation

@michael-simons
Copy link
Contributor

This PR contains 2 commits.

The first one updates to 4.0.0-beta02, mainly fixing package names and imports, but also

  • Adapting to the new Bookmark api
  • Changing the assertions regarding encryption.
  • Minor API changes

The 2nd one updates to the current driver snapshot and is kinda bigger change.
The latest driver doesn't support null or the empty string as database name and doesn't have a constant of ABSENT_DB_NAME. I set this fix to neo4j, as I didn't want to mess with the logic cypher shell has in place.

Feel. free to pick any commit or both, but please be aware that this is currently untested. I compiled my fork and actually used it, but didn't run the test.

@sherfert sherfert self-assigned this Oct 8, 2019
@sherfert
Copy link
Collaborator

sherfert commented Oct 8, 2019

I pulled the first commit into #172
We do not want to depend on SNAPSHOT, but we will keep the second commit around, so that we can simplify the next update to a beta or a stable version.

public interface DatabaseManager
{
String ABSENT_DB_NAME = "";
String ABSENT_DB_NAME = "neo4j"; // TODO After beta02, "" and literal null are no longer valid database names.
Copy link
Collaborator

Choose a reason for hiding this comment

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

This will break the internal Cypher Shell logic of distinguishing between having the database name set to an explicit name and having it set to whatever is the default.

We have already adapted to never pass the empty string to the driver a long time ago (See BoltStateHandler.reconnect()).

@sherfert sherfert closed this Oct 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants