Redaction fails for nested fields

Symptoms

The redaction control fails to work with a property that uses a JSON path with more than one field name. For example $.person.name.

A Kafka consumer set up to consume from this option will have connection failures. The Event Gateway displays errors in the logs similar to the following example:

WARN  com.ibm.ei.gateway.eem.core.RecordDataUtils - [encodeAvro:143] The data does not match the schema: Schema with encoding: AVRO_BINARY
java.lang.ClassCastException:

...

ERROR com.ibm.ei.gateway.eem.egress.interceptors.FetchResponseRedactor (Redaction Fetch Response Interceptor) - [lambda$intercept$5:169] 
java.util.NoSuchElementException: No value present

Causes

When the Event Gateway tries to encode the message after performing the redaction, it fails to generate the nested fields correctly, and fails to create the redacted message. When the redaction failure occurs, the Event Gateway sends a null message to avoid passing on any sensitive information.

Resolving the problem

To resolve the problem, upgrade your Event Endpoint Management instance to version 11.1.3 or later.