Look Up Item by Value Assertion fails if a multivalued variable contains the same value multiple times.

Document ID:  TEC1147318
Last Modified Date:  08/15/2017
{{active ? 'Hide' : 'Show'}} Technical Document Details

Products

  • CA API Management Gateway

Releases

  • CA API Management Gateway:Release:9.0.00
  • CA API Management Gateway:Release:9.1.00
  • CA API Management Gateway:Release:8.4
  • CA API Management Gateway:Release:8.3
  • CA API Management Gateway:Release:8.2.00
  • CA API Management Gateway:Release:8.0
  • CA API Management Gateway:Release:8.1.0

Components

  • API GATEWAY:APIGTW
Problem:

The "Look Up Item by Value" assertion fails if a multivalued variable contains the same value multiple times.

 

ssg_0_0.log shows:

INFO 5336 com.l7tech.external.assertions.xmlsec.server.ServerIndexLookupByItemAssertion: 6: More than one value was matched. Exception caught!

Environment:
All
Cause:

This is a defect and will be fixed in future releases.

Workaround:

If Look Up Item by Value Assertion failed, you may try to find the target value in the multivalued variable with using “Run Assertions for Each Item Assertion”.

 

The attached “workaround.xml” implemented the scenario as a sample policy.

This sample policy has a variable ‘fave’ (value ‘apple’) and ‘fruitsalad’ (multiple values). The Look Up Item by Value Assertion use these variables for the properties as following.

To test the workaround, try to add the same value ‘apple’ as the fave to the variable ‘fruits’ to duplicate.

Additional Information:

Attachment: workaround.xml

Please help us improve!

Will this information enable you to resolve your issue?

Please tell us what we can do better.

{{feedbackText.length ? feedbackText.length : '0'}}/255

{{status}}

Not what you were looking for?

Search Again >

Product Information

Support by Product >

Communities

Join a Community >