App-Schema complex filter splitter doesn't take into account multiple nested attributes matches

Description

App-Schema doesn't supports yet the encoding of filters on multiple nested attributes, this happens when we have the same element appearing , multiple times but with different mappings.

The complex filter splitter already handles correctly the situation where only multiple nested attributes are found:

https://github.com/nmco/geotools/blob/9989fa592dbfbf74dace1185212206b4160bcc4d/modules/extension/app-schema/app-schema/src/main/java/org/geotools/data/complex/filter/ComplexFilterSplitter.java#L270-L271

But fails to handle the situation where a direct mapping is found with multiple nested attributes:

https://github.com/nmco/geotools/blob/9989fa592dbfbf74dace1185212206b4160bcc4d/modules/extension/app-schema/app-schema/src/main/java/org/geotools/data/complex/filter/ComplexFilterSplitter.java#L315-L334

Environment

None

Assignee

Nuno Oliveira

Reporter

Nuno Oliveira

Triage

None

Fix versions

Priority

Medium
Configure