-
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
Watcher: Scripting does not allow use of DateTime objects anymore #35913
Comments
Pinging @elastic/es-core-features |
First reported in https://discuss.elastic.co/t/ctx-execution-time-getmillis-no-longer-works-with-elasticsearch-6-5-0/157788/2 Yes, the reason is DateTime was removed from the whitelist. I did not realize there were other places exposing joda objects in scripts. I will start with a fix to add it back to the whitelist, then followup with fixing watcher to expose the date as the same joda compatible object doc values use. |
Watcher still exposes some dates as joda DateTime objects. This commit adds back joda to the painless whitelist so they can still be accessed. closes elastic#35913
Watcher still exposes some dates as joda DateTime objects. This commit adds back joda to the painless whitelist so they can still be accessed. closes #35913
Watcher still exposes some dates as joda DateTime objects. This commit adds back joda to the painless whitelist so they can still be accessed. closes #35913
Watcher still exposes some dates as joda DateTime objects. This commit adds back joda to the painless whitelist so they can still be accessed. closes #35913
Elasticsearch version (
bin/elasticsearch --version
): 6.5.1Description of the problem including expected versus actual behavior:
Steps to reproduce:
Returns
I think the reason for this is, that we do not expose
org.joda.time.DateTime
in scripting anymore, only, correct @rjernst ?I think the proper solution is to convert the DateTime objects in the watch context to joda compatible zoned date times in the next patch release.
The text was updated successfully, but these errors were encountered: