Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
711:scripting_advanced [2025/04/04 11:52] – [Advanced Scripting] Weinlein, Thomas | 711:scripting_advanced [2025/04/04 11:58] (current) – [Advanced Scripting] Weinlein, Thomas | ||
---|---|---|---|
Line 3: | Line 3: | ||
====== Advanced Scripting ====== | ====== Advanced Scripting ====== | ||
- | Some advanced reports might need to use additional Java library API to provide the requested functionality. As this might pose security risks, explicit whitelisting of such API is necessary. This can be done by providing a comma separated list of class names in the following configuration properties depending on the use case: | + | Some advanced reports |
Admin Jobs: '' | Admin Jobs: '' | ||
Line 14: | Line 14: | ||
< | < | ||
</ | </ | ||
+ | |||
+ | Stages will prevent access to all other Java API and will log an error message indicating the unavailable class that needs whitelisting. | ||
File system access also needs explicit permission via configuration. | File system access also needs explicit permission via configuration. | ||
Line 49: | Line 51: | ||
</ | </ | ||
- | Please ensure the returned streams are closed after usage. | + | Please ensure the returned streams are **closed after usage**. |
e.g. | e.g. | ||
<code javascript> | <code javascript> | ||
- | var reader = new java.io.BufferedReader(new java.io.InputStreamReader(Files.newInputStream(" | + | var reader = new java.io.BufferedReader(new java.io.InputStreamReader(Files.newInputStream(" |
try { | try { | ||
while ((rline = reader.readLine()) != null) { | while ((rline = reader.readLine()) != null) { |