GW10 Upgrade: Custom Assertion issue with EvaluateMathExpressionAssertion
search cancel

GW10 Upgrade: Custom Assertion issue with EvaluateMathExpressionAssertion

book

Article ID: 218974

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

We are getting this error after upgrading Gateway 9.4 to Gateway 10.

2021-06-28T14:27:28.512+0200 WARNING 222 com.l7tech.server.policy.assertion.ServerInclude: Included policy failure: Assertion not available: Unknown assertion: EvaluateMathExpression

Even after installing the latest version of the EvaluateMathExpression assertion the following error persist in the logs 


2021-06-29T09:09:26.768+0200 INFO    41 com.l7tech.server.policy.module.ModulesScanner: Checking module with updated timestamp: EvaluateMathExpressionAssertion-sdk80-1.0-2702.jar
2021-06-29T09:09:26.776+0200 INFO    41 com.l7tech.server.policy.module.CustomAssertionsScanner: Registered custom assertion com.l7tech.external.custom.evaluatemathexpression.EvaluateMathExpressionAssertion from module EvaluateMathExpressionAssertion-sdk80-1.0-2702.jar
2021-06-29T09:09:26.922+0200 WARNING 41 com.l7tech.server.policy.PolicyCacheImpl: 3255: Policy "policy_differ" (#ccacefcf0817e2303049eee78acc835f) contains an unlicensed assertion: Unknown assertion: EvaluateMathExpression
2021-06-29T09:09:26.997+0200 WARNING 41 com.l7tech.server.policy.PolicyCacheImpl: 3255: Policy "xxxxxxxxxxxxxx" (#c7f5f7dae64808c45614804dd2c43337) contains an unlicensed assertion: Unknown assertion: EvaluateMathExpression
2021-06-29T09:09:28.495+0200 SEVERE  803 com.l7tech.server.SoapMessageProcessingServlet: Assertion not available: Unknown assertion: EvaluateMathExpression
2021-06-29T09:09:28.499+0200 WARNING 803 com.l7tech.server.policy.assertion.ServerInclude: Included policy failure: Assertion not available: Unknown assertion: EvaluateMathExpression
2021-06-29T09:09:28.499+0200 WARNING 803 com.l7tech.server.policy.assertion.ServerInclude: Included policy failure: Assertion not available: Unknown assertion: EvaluateMathExpression
2021-06-29T09:09:28.499+0200 WARNING 803 com.l7tech.server.policy.assertion.ServerInclude: Included policy failure: Assertion not available: Unknown assertion: EvaluateMathExpression
2021-06-29T09:09:28.499+0200 WARNING 803 com.l7tech.server.policy.assertion.ServerInclude: Included policy failure: Assertion not available: Unknown assertion: EvaluateMathExpression

Environment

Release : 10.0

Component : API GATEWAY

Resolution

The new EvaluateMathExpression is loaded successfully and can be seen in the assertion list in the policy manager. However, the migrated policies are showing it as an unknown assertion. 

Gateway 9.4 was using an old version of EvaluateMathExpression assertion which has a different GUID than the current version. The old version is a modular file that is official for Gateway 8.x and before. 

The new EvaluateMathExpression is a custom assertion and is for Gateway 9.x and above.  The ID of this assertion is different and the gateway will treat them as two different assertions.

You should update your policy to use the new assertion. or as a workaround install the old  EvaluateMathExpression as aar file in the new Gateway 10.

For the future, you have to consider upgrading the policy to use the new EvaluateMathExpression assertion.