Skip to content

Empty query string checks on server and driver are inconsistent #682

Open
@james-whiteside

Description

@james-whiteside

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:

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.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions