Skip to content

[feature] set up allowed class-permissions to JEXL constructor #154

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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

Milchreis
Copy link

hi,

I had some trouble by using commons-scxml, because JEXL doesn't know my objects. Unfortunately JEXL is not very verbose and I took some time to understand that there are permissions. commons-scxml has no "easy" way to add some custom permissions and it needs a deeper understanding to see that the JexlEvaluator has to derive with an overridden createJexlEngine-method.

This PR contains a new constructor for JexlEvaluator which allows a custom set of classes which is used in createJexlEngine(). Moreover there is a test now, which supportes the usage of classes outside the allowed java- and sxcml2-packages.

I hope it finds a way into this great library 😊

Copy link
Member

@garydgregory garydgregory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Milchreis
Thank you for your PR ! 😀
Please see my comments.

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

Successfully merging this pull request may close these issues.

2 participants