----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/74007/#review224481 -----------------------------------------------------------
ranger-plugin-classloader/src/main/java/org/apache/ranger/plugin/classloader/RangerPluginClassLoader.java Line 94 (original), 87 (patched) <https://reviews.apache.org/r/74007/#comment313254> For policies with resource having expressions, like ${{USER.dept}}, ResourceMatcher gets RangerPluginClassLoader instance with serviceType=null. In such case, block #72 - #85 will be triggered when pluginClassLoaders is not populated. This can be avoided by populating pluginClassLoaders with null key as well. - Madhan Neethiraj On June 2, 2022, 3:02 p.m., Abhay Kulkarni wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/74007/ > ----------------------------------------------------------- > > (Updated June 2, 2022, 3:02 p.m.) > > > Review request for ranger, Madhan Neethiraj and Ramesh Mani. > > > Bugs: RANGER-3606 > https://issues.apache.org/jira/browse/RANGER-3606 > > > Repository: ranger > > > Description > ------- > > JDK 11 JRE fails to create javascript Script-Engine for tag policies > containing script conditions > > > Diffs > ----- > > > agents-common/src/main/java/org/apache/ranger/plugin/util/ScriptEngineUtil.java > 79a702a8f > > ranger-plugin-classloader/src/main/java/org/apache/ranger/plugin/classloader/RangerPluginClassLoader.java > 7ed776ecb > > > Diff: https://reviews.apache.org/r/74007/diff/2/ > > > Testing > ------- > > Tested with JDK11. Passes all unit tests. > > > Thanks, > > Abhay Kulkarni > >
