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

[Bug] Requesting api=null is a) not going to return anything from the database and b) impossible #9

Closed
cab9340 opened this issue Nov 8, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@cab9340
Copy link

cab9340 commented Nov 8, 2018

Specifically:
It is my impression that requesting auth=null is intended to return all entries that have no authentication.
Instead it returns no entries, since "null" does not substring-match to "".
Thirdly, you cannot transmit the actual null object because we're restricted to strings because we're using GET requests.
Fourthly, if you do in fact transmit empty-string, you get all entries in the database since the empty string is a substring of all strings. I personally can solve this with a postprocess run, but think that's definitely something that needs fixing.
I presume a similar thing would happen for the HTTPS field, but in that case you can just leave it off the query.

davemachado added a commit that referenced this issue Dec 16, 2018
@davemachado
Copy link
Owner

Thanks for reporting this issue @cab9340 ! Fixed in f2d959f.

@davemachado davemachado added the bug Something isn't working label Dec 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants