-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
:Core/Infra/ScriptingScripting abstractions, Painless, and MustacheScripting abstractions, Painless, and Mustache>enhancement
Description
This is a feature request to have java.util.UUID.randomUUID() whitelisted in painless scripts.
Has this method been intentionally left off the whitelist? If so, why?
Here are several attempts I've made to understand why this method is not whitelisted and to find workarounds for it. In a nutshell, I need to use it in a reindex call.
- I've tried to get input from @nik9000 and @markwalkom in the following forum posts about this.
- https://discuss.elastic.co/t/need-to-generate-uuid-in-painless-script/165318
- https://discuss.elastic.co/t/question-about-painless-whitelist/165523
- https://stackoverflow.com/questions/54682324/how-to-generate-a-uuid-in-elasticsearch-reindex-painless-script
Cheers
Oliver
mira-silhavy and maybe-another-name
Metadata
Metadata
Assignees
Labels
:Core/Infra/ScriptingScripting abstractions, Painless, and MustacheScripting abstractions, Painless, and Mustache>enhancement