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

Update JEASY MVEL dependencies to fix security vulnerabilities #655

Draft
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

ekigamba
Copy link
Contributor

No description provided.

@ekigamba ekigamba changed the title upgraded the native form library mvel dependencies Update JEASY MVEL dependencies Nov 21, 2022
@ekigamba ekigamba changed the title Update JEASY MVEL dependencies Update JEASY MVEL dependencies to fix security vulnerabilities Nov 21, 2022
@@ -1427,7 +1428,13 @@ private Facts getEntries(String[] address, JSONObject object) throws JSONExcepti
formObject.put(RuleConstant.IS_RULE_CHECK, true);
formObject.put(RuleConstant.STEP, formObject.getString(RuleConstant.STEP));

result.asMap().putAll(getValueFromAddressCore(formObject).asMap());

Facts resultFacts = getValueFromAddressCore(formObject);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

So this fixes an issue where comparison values were not available

}

@Override
public void onFailure(Rule rule, Facts facts, Exception exception) {
//Overriden
Timber.e("Putting facts in onFailure");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Kindly check if there might be successful executions of rules meaning that we might need to update our facts object with key-values from the facts.facts map

@ekigamba
Copy link
Contributor Author

ekigamba commented Jan 3, 2023

@junaidwarsivd Kindly push your latest changes and fix the build in this PR

@@ -27,8 +29,16 @@ public class AssetsFileSource implements FormFileSource {
private MVELRuleFactory mvelRuleFactory;

private AssetsFileSource() {
if(Utils.enabledProperty(NativeFormsProperties.KEY.EASY_RULES_V3_COMPATIBILITY))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fix the formatting and/or spacing in the files

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