[ 
https://issues.apache.org/jira/browse/NIFI-7825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17220974#comment-17220974
 ] 

ASF subversion and git services commented on NIFI-7825:
-------------------------------------------------------

Commit 3dd024fb66f11d45a188e2281966a51ff198250a in nifi's branch 
refs/heads/main from Peter Turcsanyi
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=3dd024f ]

NIFI-7825: Support native library loading via absolute path

Use an AspectJ aspect and agent to intercept the load native library calls
at runtime, copy the native library file to temp folder and proceed with
the newly created file in order to provide classloader isolation.

Remove AspectJ jars from lib directory, move the necessary jar to lib/aspectj 
subdirectory.

This closes #4540.

Signed-off-by: Bryan Bende <[email protected]>


> Support native library loading via absolute path
> ------------------------------------------------
>
>                 Key: NIFI-7825
>                 URL: https://issues.apache.org/jira/browse/NIFI-7825
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Core Framework
>            Reporter: Peter Turcsanyi
>            Assignee: Peter Turcsanyi
>            Priority: Major
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> There are two methods to load a native library in Java:
>  * {{java.lang.System.loadLibrary(String libname)}} - where {{libname}} is 
> the native library's logical name
>  * {{java.lang.System.load(String filename)}} - where {{filename}} if the 
> native library's absolute path
> [https://issues.apache.org/jira/browse/NIFI-6884] resolved the classloader 
> isolation problem for the {{loadLibrary(String libname)}} way.
> It should be handled in case of {{load(String filename)}} too.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to