NSG VersioningFilterAdapter breaks usage of FID filters

Description

The versioning filter transforms FeatureId filters into simple equalities, but without removing the feature type prefix:
https://github.com/geoserver/geoserver/blob/2a15fc06b8a4d9badf09d95f81d731e3d7e16152/src/community/nsg-profiles/nsg-wfs-profile/src/main/java/org/geoserver/nsg/versioning/VersioningFilterAdapter.java#L31

So a valid filter like featureId="river_c.21" becomes an invalid filter "pkey = 'river_c.21', where pkey is a integer primary key. Either the visitor should avoid doing this replacement, or at least the featureid prefix, automatically added by geoserver, should be removed, ending in "pkey = 21" instead.

Environment

None

Status

Assignee

Andrea Aime

Reporter

Andrea Aime

Triage

None

Fix versions

Affects versions

None

Components

Priority

Medium
Configure