Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Python Modules fails #4

Open
batikanu opened this issue Jul 16, 2020 · 1 comment
Open

Adding Python Modules fails #4

batikanu opened this issue Jul 16, 2020 · 1 comment

Comments

@batikanu
Copy link

batikanu commented Jul 16, 2020

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants