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

fix: filterQuery throw error when query parameter is unknown #1131

Merged
merged 1 commit into from
Dec 17, 2018

Conversation

daffl
Copy link
Member

@daffl daffl commented Dec 16, 2018

In order to avoid issues with the database adapter updates, unknown query parameters starting with $ should throw an error instead of just being removed. If they were just being removed, limiting queries would become more generic, causing security regressions.

@daffl daffl merged commit cd1a183 into master Dec 17, 2018
@daffl daffl deleted the filter-query-error branch December 17, 2018 00:13
@kkkrist
Copy link

kkkrist commented Jan 31, 2019

Is there a way to somehow whitelist query parameters? For example, I've been using nedb's $not operator which isn't possible anymore as of this PR.

@daffl
Copy link
Member Author

daffl commented Jan 31, 2019

The service options now include a whitelist parameter. Also see the database adapter migration guide.

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

Successfully merging this pull request may close these issues.

2 participants