Mongo filter allows Java types unsupported by Java Mongo Driver

Description

This commit https://github.com/geotools/geotools/commit/07b2e2def9faeb3e649486e69fb5dad630688c40

Introduced a bug in which Java types not supported by the mongo Java driver could be converted.

https://github.com/geotools/geotools/blob/07b2e2def9faeb3e649486e69fb5dad630688c40/modules/unsupported/mongodb/src/main/java/org/geotools/data/mongodb/FilterToMongo.java#L658-L670

Above code should check and convert only types supported by the mongo Java driver.

Environment

Using mongodb module

Status

Assignee

Nuno Oliveira

Reporter

Billy Newman

Triage

None

Components

Fix versions

Affects versions

18-beta

Priority

Medium