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

Filters should validate for correct data using the field class' clean() function #130

Open
sjamaan opened this issue Apr 9, 2020 · 0 comments

Comments

@sjamaan
Copy link
Contributor

sjamaan commented Apr 9, 2020

When a uuid field is being filtered and the frontend passes in the empty string, this triggers a 500 internal server error on the backend.

Binder tries to prevent this with various regex and other kinds of checks, and we could of course add something like that specifically for uuids (and maybe we should? uuids aren't strings), but more generally I think it's a good idea to use the field class to clean the value, if possible.

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

No branches or pull requests

1 participant