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

SQL: supplement input checks on received request parameters (#52229) #52277

Merged
merged 1 commit into from
Feb 12, 2020

Conversation

bpintea
Copy link
Contributor

@bpintea bpintea commented Feb 12, 2020

  • Add more checks around parameter conversions

This commit adds two necessary verifications on received parameters:

  • it checks the validity of the parameter's data type: if the declared
    data type is resolved to an ES or Java type;
  • it checks if the returned converter is non-null (i.e. a conversion is
    possible) and generates an appropriate exception otherwise.

(cherry picked from commit eda30ac)

…52229)

* Add more checks around parameter conversions

This commit adds two necessary verifications on received parameters:
- it checks the validity of the parameter's data type: if the declared
data type is resolved to an ES or Java type;
- it checks if the returned converter is non-null (i.e. a conversion is
possible) and generates an appropriate exception otherwise.

(cherry picked from commit eda30ac)
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search (:Search/SQL)

@bpintea bpintea merged commit 5dfe276 into elastic:7.x Feb 12, 2020
@bpintea bpintea deleted the port/7.x_52229 branch February 12, 2020 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants