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

Validate integer-like string arguments early and throw sensible errors. #14

Closed
wants to merge 1 commit into from

Conversation

wolfsage
Copy link
Contributor

There are a number of arguments that are strings in JMAP and integers in
the database, such as id fields, and sinceState.

These weren't being validated and would throw db exceptions if non-integer
data was passed in.

There are a number of arguments that are strings in JMAP and integers in
the database, such as id fields, and sinceState.

These weren't being validated and would throw db exceptions if non-integer
data was passed in.
@rjbs
Copy link
Member

rjbs commented Aug 29, 2016

locally merged with minor changes: removed sinceState validation from ix_get, which we already killed off; will soon add a commit to not explain under-hood validation

@rjbs rjbs closed this Aug 29, 2016
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