Skip to content

cql_filter_write not fully enforced on updates #85

@dispiste

Description

@dispiste

Steps to reproduce

  1. Define a rule in Geoserver-ACL:

    cql_filter_write: tipo = 5
  2. Insert a feature in Geoserver, using WFS, with tipo = 4 .

    • Result: Rejected (expected).
  3. Insert a feature with tipo = 5.

  4. Update this feature, changing tipo from 5 to 4.

    • Result: Accepted (unexpected).

Actual behavior

The rule only validates the original value of the feature during an update, not the new value.

Expected behavior

Both the original and updated values should be validated against cql_filter_write, otherwise restricted values can be inserted indirectly (insert + update).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions