Adding Python Modules fails
Opened this issue · 1 comments
Hi I was trying to add python Ldap library. I followed the instructions in this repository inside the xebialabs/xl-release:9.5 docker container
In the code I import the library as follows.
import ldap
ldap.initialize(server_url)
While executing the task I get this error
Exception during execution: java.security.AccessControlException: java.security.AccessControlException: access denied ("java.io.FilePermission" "{ServerWorkingDirectory}/lib/Lib" "read") in <script> at line number 31
Do you know what can it be releated?
hi @batikanu ,
This error is related to the java security permissions since the underlying architecture is using java. You can open permissions for certain types of accessing by adding the rules to the script.policy file under conf folder. here'e more https://docs.xebialabs.com/v.9.7/release/how-to/create-an-external-script-task/#get-started