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

Invalid filter values result in internal server error #311

Open
pehbehbeh opened this issue Jun 14, 2024 · 0 comments
Open

Invalid filter values result in internal server error #311

pehbehbeh opened this issue Jun 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@pehbehbeh
Copy link
Member

Invalid filter values should not result in a 500 internal server error.

For example, the user filter on the post resource is a multi select filter. You can add more users by repeating the filters[user][] parameter in the URL:

/posts?filters[user_id][]=<user_id>&filters[user_id][]=<user_id>

But because we expect the multi select filter values to be in this structure, the following URL will return a 500 internal server error:

/posts?filters[user_id]=<user_id>

Either the filter values should be ignored in this case or a bad request should be returned by the server.

There is also an error if the given `user_id' is not a UUID.

@pehbehbeh pehbehbeh converted this from a draft issue Jun 14, 2024
@pehbehbeh pehbehbeh moved this from Specification to Ready in Backpex Development Jun 14, 2024
@pehbehbeh pehbehbeh added the bug Something isn't working label Jun 14, 2024
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
Status: Ready
Development

No branches or pull requests

1 participant