-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
[Corner case] Script working event after disabling dynamic scripting #7816
Comments
I'm unable to replicate this on 1.3.2. Could you provide a complete standalone replication? thanks |
@clintongormley - My apologies , it was not _size , it was doc.score. |
True, in 1.3.3, with scripting disabled: This works:
While this returns an error about disabled scripting:
@brwe any ideas here? |
|
@brwe no, it's not a security issue. i'd leave it as it is, esp as it is already fixed in 1.4. thanks for looking |
On executing
I am seeing
{
took: 13
timed_out: false
_shards: {
total: 1
successful: 1
failed: 0
}
hits: {
total: 1946
max_score: 0
hits: [ ]
}
aggregations: {
sum: {
value: 1946
}
}
}
But on executing
I am getting - SearchPhaseExecutionException[Failed to execute phase [query_fetch], all shards failed; shardFailures {[OtHPQX2iRj2yhtfeBMqJgA][restaurants][0]: SearchParseException[[restaurants][0]: from[-1],size[0]: Parse Failure [Failed to parse source [{"size":0,"aggs":{"sum":{"sum":{"script":"_score"}}}}]]]; nested: ScriptException[dynamic scripting for [mvel] disabled]; }]
The text was updated successfully, but these errors were encountered: