xebialabs-community / xlr-jython-code-snippets

XLR code snippets using python and jython API
12 stars 11 forks source link

Adding Python Modules fails #4

Open batikanu opened 4 years ago

batikanu commented 4 years ago

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?

amitmohleji commented 4 years ago

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