-
Notifications
You must be signed in to change notification settings - Fork 4.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
Rule Node Scripts: delight-nashorn-sandbox ScriptCPUAbuseException #11077
Comments
Attach a sample code that causes an error in the script node of the rules engine. |
We are experiencing the same issue, most of our MQTT Integrations are showing Errors due to this issue. Changing the USE_LOCAL_JS_SANDBOX to "false" resolved it (temporarly) but at what other possible issues? |
Describe the bug
Since 3.7.0 (lengthy) rule-node scripts which were working in 3.6.4 now fail:
Can't compile script: delight.nashornsandbox.exceptions.ScriptCPUAbuseException: Regular expression running for too many iterations. The operation could NOT be gracefully interrupted.
This appears to be directly related to a commit where delight-nashorn-sandbox version is changed from 0.2.1 to 0.4.2 cd722a1
delight-nashorn-sandbox has an open bug, introduced at 0.3.1, which appears to fail-to-parse certain structures: javadelight/delight-nashorn-sandbox#151
Your Server Environment
Your Client Environment
To Reproduce
Steps to reproduce the behavior:
Additional context
As a workaround, changing environment the variable in thingsboard.conf
USE_LOCAL_JS_SANDBOX = false
appears to mitigate the error. However, we dont want to do this in production.The text was updated successfully, but these errors were encountered: