memgraph icon indicating copy to clipboard operation
memgraph copied to clipboard

[BUG] Bolt Hello message response doesn't contains "server"

Open stefanak-michal opened this issue 3 years ago • 2 comments

Memgraph version 2.3.1

Environment Windows, Docker, PHP Bolt library

Describe the bug After connecting to memgraph over bolt first message is "hello" to login into. Server response for this message should be map with keys "server" and "connection_id" (optional "hints"). Currently response contains only "connection_id".

To Reproduce Steps to reproduce the behavior:

  1. Connect to database over bolt and run hello message
  2. Analyze response

Expected behavior Response has to contain key "server". Missing key "server" have to contain server agent string identifier like "memgraph/2.3.1".

stefanak-michal avatar Jul 25 '22 07:07 stefanak-michal

Hi, I am Benjo from discord! Thanks for reporting this, however this is not a bug in our implementation, more likely a bug in our documentation. If you check our configuration options for Bolt, you can see the --bolt-server-name-for-init option: "Server name which the database should send to the client in the Bolt INIT message.". Our documentation is unfortunately not clear, because if you don't specify any name, then we won't send the "server" field of the SUCCESS message.

However I will leave this issue open until we fix the documentation.

antaljanosbenjamin avatar Jul 25 '22 18:07 antaljanosbenjamin

Why you don't have default value?

stefanak-michal avatar Jul 25 '22 18:07 stefanak-michal

I have put this task into the backlog.

Josipmrden avatar Dec 15 '22 20:12 Josipmrden

Hi, +1 on this issue. I was unable to use python neo4j driver, unless I add --bolt-server-name-for-init=Neo4j/4.4.0 to the config. Is there any reason for this not to be the default?

alex-linx avatar Aug 16 '23 21:08 alex-linx