-
Notifications
You must be signed in to change notification settings - Fork 443
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
[APIM] Add Support to Config Java Access Control through JS in Script Mediator #2133
[APIM] Add Support to Config Java Access Control through JS in Script Mediator #2133
Conversation
...nsions/src/test/java/org/apache/synapse/mediators/bsf/javascript/JavaScriptMediatorTest.java
Outdated
Show resolved
Hide resolved
...nsions/src/test/java/org/apache/synapse/mediators/bsf/javascript/JavaScriptMediatorTest.java
Outdated
Show resolved
Hide resolved
The MI build appears to be unstable in previously merged PRs as well. However, since |
* @return Whether the access is allowed or not. | ||
*/ | ||
public static boolean isAccessAllowed(String string, AccessControlConfig accessControlConfig, | ||
Comparator<String> comparator) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please look into the indentations in here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation seems to be ok on IntelliJ
limit_java_class_access_in_scripts.class_prefixes = java.util.ArrayList | ||
limit_java_native_object_access_in_scripts.enable = true | ||
limit_java_native_object_access_in_scripts.list_type = BLOCK_LIST | ||
limit_java_native_object_access_in_scripts.object_names = getClassLoader,loadClass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a new line here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed through PR #2159
Purpose
The access to java classes though JS in script mediator can be controlled through following synapse propeties