Files
ocis/changelog
Paul FaureandClaude Opus 4.6 f48fe015e1 fix(graph): avoid superfluous GetPublicShare call when deleting space permissions (#12122)
* fix(graph): avoid superfluous GetPublicShare call when deleting space permissions

DeletePermission unconditionally called getLinkPermissionResourceID as its
first step, even for space permissions on space roots.  This always failed
and logged a confusing "GetPublicShare failed" error.

Recognise space permission IDs (u:/g: prefixed) by their format via
spacePermissionIdToCS3Grantee before making any gateway calls.  Public
link lookups on space roots now only happen when the ID does not match
the space permission format.

Fixes: #12012

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Paul Faure <paul@faure.ca>

* docs: update changelog with PR number

Signed-off-by: Paul Faure <paul@faure.ca>

* refactor(graph): extract permission resolution helpers to reduce complexity

Split DeletePermission into resolveDeletePermission,
resolveSpaceRootPermission, and resolveItemPermission to bring
cognitive complexity under the SonarCloud limit of 15.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Paul Faure <paul@faure.ca>

---------

Signed-off-by: Paul Faure <paul@faure.ca>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-09 10:12:36 +02:00
..
2025-05-27 18:26:24 +03:00
2025-07-15 15:02:56 +02:00
2025-11-27 09:05:22 +01:00
…
…

Changelog

We are using calens to properly generate a changelog before we are tagging a new release. To get an idea how this could look like https://github.com/restic/restic/tree/master/changelog would be the best reference.

Create changelog items

Create a file according to the template for each changelog in the unreleased folder. The following change types are possible:

  • Bugfix (general Bugfix)
  • Enhancement (new feature)
  • Change (breaking change)
  • Security (security related issues)