Skip to content

Issue with owner permission with LDAP integration #12013

@tdipisa

Description

@tdipisa

While testing geosolutions-it/geostore#468 an issue was found :

  • When saving, the server return -1 for every resource in case of LDAP integration. So deleting one saved permission internally is done by id, but id is -1 for every rule, so the front end deletes everything.
  • We can solve by checking by applying changes by NAME + TYPE instead of by id. If IPRanges, check and use ID anyway, because in this case we don't have name I think
  • This doesn't happen while adding new rules, because arbitrary IDs are applied to the groups, so it initially works. But when loading saved items, the problem appear.
Screencast.from.2026-02-24.12-56-23.webm

There are other consequences about this:

  • Edit permission
  • Delete all rules at once
Screencast.from.2026-02-24.13-11-15.webm

This requires a backport on 2025.02.xx too

Metadata

Metadata

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions