-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix element ID neo4j_value type for Bolt v5
Trying to read actual element IDs received over Bolt v5 caused assertion failures in neo4j_node_elementid() and friends. According to the Bolt v5 protocol structure semantics, element IDs are transferred as strings. Because struct_deserialize() left them as NEO4J_STRING, reading out the element IDs failed as other code expects them to be NEO4J_ELEMENTID. The issue doesn't show up on earlier Bolt versions because for those versions, the element IDs are synthesized from legacy numeric IDs during deserialisation. That special case uses the correct neo4j_value type NEO4J_ELEMENTID to begin with. This change replaces the NEO4J_STRING neo4j_value type metadata of received element ID strings with NEO4J_ELEMENTID. The underlying string is not touched.
- Loading branch information
1 parent
e32267b
commit 65b4d4d
Showing
4 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters