Files
ocis/changelog
Paul Faure 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
..
2023-04-21 15:40:53 +05:45
2023-04-21 15:40:53 +05:45
2023-04-21 15:40:53 +05:45
2023-04-21 15:40:53 +05:45
2021-05-12 16:29:58 +02:00
2023-04-21 15:40:53 +05:45
2021-07-13 09:07:34 +02:00
2023-04-21 15:40:53 +05:45
2021-08-25 15:28:02 +02:00
2021-09-20 16:54:29 +05:45
2023-04-21 15:40:53 +05:45
2023-04-21 15:40:53 +05:45
2023-04-21 15:40:53 +05:45
2021-12-10 10:20:10 +01:00
2023-04-21 15:40:53 +05:45
2023-04-21 15:40:53 +05:45
2023-04-21 15:40:53 +05:45
2023-04-21 15:40:53 +05:45
2023-08-23 15:15:44 +02:00
2024-03-18 14:39:30 +01:00
2024-04-11 11:03:06 +02:00
2024-04-17 14:05:45 +02:00
2024-05-03 14:34:28 +02:00
2024-08-07 17:46:09 +02:00
2024-08-07 17:46:09 +02:00
2024-08-07 17:46:09 +02:00
2024-10-23 16:13:28 +02:00
2024-10-24 14:12:46 +02:00
2024-12-17 10:42:36 +01:00
2025-03-31 12:09:18 +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
2021-10-08 09:26:43 +02:00
2021-10-08 09:26:43 +02: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)