Uploaded image for project: 'GeoServer'
  1. GEOS-8700

NSG VersioningFilterAdapter breaks usage of FID filters

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.14-RC
    • Component/s: Community modules
    • Labels:
      None

      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.

        Attachments

          Activity

            People

            • Assignee:
              aaime Andrea Aime
              Reporter:
              aaime Andrea Aime
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: