Commit Graph
955 Commits
Author SHA1 Message Date
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
ownClouders 928b8d4823 [tx] updated from transifex 2026-03-08 00:35:19 +00:00
ownClouders 7edacfcb0e [tx] updated from transifex 2026-03-05 00:05:30 +00:00
Martin b9bfb96257 Merge pull request #12001 from paul43210/fix/idempotent-tag-unassign
fix(graph): make tag unassignment idempotent
2026-03-04 13:22:23 +01:00
Julian Koberg 1dc6fa096c test: let (ai) add a test for it
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2026-02-25 16:12:57 +01:00
Julian Koberg 7d30c8fc6e fix(graph): (ai) fix other groupOfNames and comment
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2026-02-25 15:55:12 +01:00
Gwilherm Folliot d43e23e5f0 fix(graph): Don't use hardcoded groupOfNames in group creation 2026-02-25 15:43:36 +01:00
ownClouders 87a899873c [tx] updated from transifex 2026-02-17 00:27:04 +00:00
Lukas Hirt db06952566 feat(graph): [OCISDEV-602] add space ID to incoming shares
Added the `spaceId` to the incoming shares. This is aligning the graph
API with the WebDAV API where the clients can use `spaceid` property.
This change allows clients to get the space ID directly instead of
having to parse the resource ID.
2026-02-16 14:21:38 +01:00
Julian Koberg 40f59e3158 chore: release 8.0.0
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2026-02-16 11:18:59 +01:00
ownClouders 8973093410 [tx] updated from transifex 2026-02-16 00:20:25 +00:00
ownClouders 3ba0d5cb6b [tx] updated from transifex 2026-02-12 00:22:17 +00:00
Paul FaureandClaude Opus 4.6 c53a985c2c fix: gofmt formatting in tags.go
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-10 16:02:39 -05:00
Paul FaureandClaude Opus 4.6 1fea569cea refactor(graph): pass TagsRemoved event to publishTagsRemoved
Build the event at the call site and pass it directly, removing
three parameters (removedTags, rid, sres) from the helper as
suggested in review.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-10 13:15:49 -05:00
Paul FaureandClaude Opus 4.6 cc66f2a651 fix: address SonarCloud code smells in tags.go
- Inline error check in publishTagsRemoved call (godre:S8193)
- Change FIXME to NOTE for intentional non-atomic rollback comment (go:S1134)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-10 11:42:33 -05:00
Roman Perekhod da5e63dfe3 feat: bump go to 1.25
feat: bump mockery to v2.53.5

feat: bump govulncheck

feat: bump bingo to v0.10.0

force go-1.25.7

update thumbnail images for test

bump reva to latest
2026-02-10 16:27:52 +01:00
Paul FaureandClaude Opus 4.6 cf8425337c refactor(graph): extract publishTagsRemoved to reduce cognitive complexity
Move the event publishing and rollback logic into a dedicated helper
method to bring UnassignTags below the SonarCloud cognitive complexity
threshold of 15.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-10 09:26:26 -05:00
Paul FaureandClaude Opus 4.6 a0e7d38e84 fix(graph): rollback metadata and return 500 on publish failure
Address review feedback: if the TagsRemoved event fails to publish,
attempt to restore the original tags metadata and return HTTP 500
instead of silently succeeding. This avoids leaving the system in
an inconsistent state where metadata is updated but the search
index is not notified.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-10 09:05:23 -05:00
Paul FaureandClaude Opus 4.6 f2b9c09cec fix(graph): make tag unassignment idempotent
The DELETE tags endpoint returned HTTP 400 with a misleading error
message ("no new tags in createtagsrequest or maximum reached") when
the requested tag was absent from the file's ArbitraryMetadata.  This
made it impossible to clean up stale tags that exist in the search
index but not in the file metadata.

Change UnassignTags to:
- skip the SetArbitraryMetadata call when nothing was removed
- always publish the TagsRemoved event so the search index stays in sync

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 00:09:28 -05:00
kobergj 6c954402cd Merge pull request #11950 from kobergj/FixLDAPGroupCreation
[OCISDEV-599] Fix Group creation in multi-instance ocis
2026-01-23 10:57:29 +01:00
ownClouders 7a6817ce22 [tx] updated from transifex 2026-01-23 00:07:43 +00:00
Julian Koberg 563bbf28c0 fix: fix group creation in multi-instance ocis
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2026-01-22 18:00:04 +01:00
Michal KlosandMartin Mattel 3e5a8683b9 feat: [OCISDEV-588] remove deprecated ocis env vars (#11942)
* feat: remove obsolete env var

* add comments for sonarcloud

---------

Co-authored-by: Martin Mattel <github@diemattels.at>
2026-01-22 17:46:42 +01:00
kobergj ca799c653f Merge pull request #11931 from kobergj/ExternalSharerPermission
[OCISDEV-454] Add Permission to allow external shares
2026-01-22 13:41:53 +01:00
kobergj f983d554da Merge pull request #11898 from kobergj/FixSharingRoles
[OCISDEV-569] Fix Sharing-Roles
2026-01-22 12:54:49 +01:00
Julian Koberg f849084f69 feat: add permission to allow sharing between instances
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2026-01-21 15:21:28 +01:00
Julian Koberg 20a831f4f0 fix: adjust test to new wording
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2026-01-21 15:16:46 +01:00
Lukas Hirt 390abcd8d7 Merge pull request #11925 from owncloud/feat/users-instances
feat(graph): [OCISDEV-458] [OCISDEV-459] add users instances
2026-01-21 11:45:23 +01:00
Lukas HirtandCopilot 9b85603d5c fix: change error message of instance URL template
Changed the message to better reflect the config value.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-21 10:28:48 +01:00
Roman Perekhod 0b6bd5ee68 fix: fix the error handling for empty name on space update 2026-01-20 20:24:44 +01:00
Lukas Hirt a8efe46b10 feat(graph): [OCISDEV-458] [OCISDEV-459] add users instances
The user endpoint now returns the instances that the user is either
a member or a guest of and the cross instance reference.
2026-01-20 10:26:58 +01:00
Julian Koberg e72de1609d fix: fix sharing roles
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2026-01-19 16:23:03 +01:00
Martin Mattel b2a2c11542 missing changes 2026-01-19 12:00:44 +01:00
Martin Mattel ed6897a7a0 [docs-only] Update of the envvar delta table and replace curie with semver 2026-01-19 11:13:26 +01:00
Julian Koberg 2ca6372668 feat: move multi-instance-config to deployment example
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2026-01-16 12:01:59 +01:00
Julian Koberg 09c2dfbd11 feat: refine way of adding users to instances
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2026-01-16 12:01:33 +01:00
Julian Koberg ddc6cb0651 feat: cross instance sharing
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2026-01-16 12:01:33 +01:00
Juan Pablo Villafáñez 7003aa26c5 fix: adjust tests 2026-01-13 18:00:58 +01:00
Juan Pablo Villafáñez 73ce507c87 fix: return 403 if user can't disable the space due to permissions 2026-01-13 18:00:58 +01:00
Martin Mattel 68c58c62d9 [docs-only] Change curie to semver in envvars plus script update 2026-01-13 10:11:17 +01:00
ownClouders f4eb08561d [tx] updated from transifex 2026-01-03 00:32:16 +00:00
ownClouders 995a20ef82 [tx] updated from transifex 2026-01-02 12:58:40 +00:00
Martin Mattel 52de90b612 Relocate the Transifex project for services with translations 2026-01-02 12:51:06 +01:00
ownClouders effd8001c7 [tx] updated from transifex 2025-12-25 00:58:56 +00:00
Roman PerekhodandMartin fb95b57bb4 feat: [OCISDEV-518] Added the graph endpoint alias (#11871)
* feat: [OCISDEV-518] Added the graph endpointis alias

* Update changelog/unreleased/enhancement-add-graph-endpoint.md

Co-authored-by: Martin <github@diemattels.at>

---------

Co-authored-by: Martin <github@diemattels.at>
2025-12-22 13:01:14 +01:00
ownClouders bcf6773a06 [tx] updated from transifex 2025-12-22 01:04:36 +00:00
ownClouders 624b646bf3 [tx] updated from transifex 2025-12-18 01:19:49 +00:00
Julian Koberg ace084dc10 feat: clean up multi-instance-ocis
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2025-12-15 10:46:51 +01:00
Julian Koberg b5a765124b feat: multi-instance-ocis
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2025-12-15 10:46:51 +01:00
ownClouders df522e5638 [tx] updated from transifex 2025-12-05 00:08:12 +00:00