-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Labels
Description
The check for empty query strings that throws MISSING_QUERY on the driver side is weaker than the check on server side. This is the case for the Python driver and @farost says the Java driver too.
In the Python driver, the check is done by coercion of the string to a boolean, resulting in strings containing only whitespace to be considered non-empty:
| if not query: |
Meanwhile, the server considers the string empty and responds with the appropriate error.
This prevents the error from being caught before transmission to the server when it could be caught earlier.