You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Vyom Mani Tiwari (Jira)" <ji...@apache.org> on 2026/10/21 03:24:00 UTC

[jira] [Resolved] (RANGER-5818) Use the common hardened script engine for nestedstructure row-filter evaluation

     [ https://issues.apache.org/jira/browse/RANGER-5818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vyom Mani Tiwari resolved RANGER-5818.
--------------------------------------
    Fix Version/s: 2.10
       Resolution: Fixed

> Use the common hardened script engine for nestedstructure row-filter evaluation
> -------------------------------------------------------------------------------
>
>                 Key: RANGER-5818
>                 URL: https://issues.apache.org/jira/browse/RANGER-5818
>             Project: Ranger
>          Issue Type: Improvement
>          Components: plugins
>    Affects Versions: 2.8.0, 2.9.0
>            Reporter: Vyom Mani Tiwari
>            Assignee: Vyom Mani Tiwari
>            Priority: Major
>             Fix For: 3.0.0, 2.10
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> Use the common script engine for nestedstructure row-filter evaluation
> RecordFilterJavaScript in plugin-nestedstructure evaluates row-filter expressions with its own script engine. Policy-condition scripts go through ScriptEngineUtil in agents-common. Use that path here so the two stay aligned.
> ranger-2.x (2.9, 2.8):
> * Create the engine with ScriptEngineUtil, as RangerRequestScriptEvaluator does.
> * Run the same pre-execution script RangerRequestScriptEvaluator runs, from one shared constant.
> master:
> * Remove the nashorn-core dependency from plugin-nestedstructure. Nashorn was removed from Ranger in RANGER-4076.
> * If the common engine cannot be created, fail with MaskingException.
> * Run the same pre-execution script as on 2.x.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)