Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
james-whiteside opened this issue Sep 19, 2024 · 0 comments
Open

Comments

@james-whiteside
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants