Commit Graph
524 Commits
Author SHA1 Message Date
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
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
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
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
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
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
Roman Perekhod 0b6bd5ee68 fix: fix the error handling for empty name on space update 2026-01-20 20:24:44 +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
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
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
Michal Klos 8806cb0cea feat: CLI, clean orphaned grants 2025-12-02 13:39:57 +01:00
Julian Koberg 2fcfa325cd feat: use externalID for provisioning api
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2025-11-12 10:58:26 +01:00
Roman PerekhodandSaw-jan 304c3f1890 fix: [OCM] Specification Compliance (#11773)
* fix: [OCISDEV-450] fix ocm path

* fix: [OCM] Specification Compliance

* update the test

* fix: [OCISDEV-471] OCM: User can't change the federated share permission

* fix tests

* test: fix federated user regex

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* test: fix federated user regex

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* test: fix federated user regex

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* test: adjust test expectations

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* latest reva ocm changes

---------

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
Co-authored-by: Saw-jan <saw.jan.grg3e@gmail.com>
2025-11-10 12:38:10 +01:00
Roman Perekhod fb2e048864 feat: [OCISDEV-284] Respect changed user type in OIDC claim (#11684)
* feat: [OCISDEV-284] Respect changed user type in OIDC claim

* check the permission insted of the role
2025-10-02 15:37:48 +02:00
Lukas Hirt 38c1c82583 Merge pull request #11695 from owncloud/feat/user-search-attributes
feat: [OCISDEV-234] add configurable display attributes
2025-10-02 14:29:03 +02:00
Roman Perekhod c2e75a05a2 feat: [OCISDEV-285] Add Cli to delete personal spaces (#11701)
* Add Cli to delete personal spaces

* fix EnsurePersonalSpace

* Purge disabled spaces 'personal' or 'project'

* bump reva

* update the test
2025-10-02 09:25:26 +02:00
Lukas Hirt c9d308f232 feat: [OCISDEV-234] add configurable display attributes
Added new configuration options `UserSearchDisplayedAttributes` which
allows to configure the attributes that are displayed in the user search results.
Also deprecate the `ShowUserEmailInResults` configuration option.
2025-10-01 21:03:53 +02:00
Roman Perekhod 2c7f57865f feat: [OCISDEV-282] user type upgrade/downgrade (#11678)
* feat: [OCISDEV-282] user type upgrade/downgrade
* the storage utils pkg separated
* extended the test coverage
* the failures added to expected
2025-09-26 17:04:01 +02:00
Julian Koberg 04b829e8a7 feat: expand mfa checks also to queries
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2025-09-23 14:03:32 +02:00
Julian Koberg dda6104722 feat: document mfa package
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2025-09-18 16:23:14 +02:00
Julian Koberg 824a71dbe2 feat: clean up mfa middleware
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2025-09-17 15:56:04 +02:00
Julian Koberg eeeeba199b feat: move mfa checks to handlers
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2025-09-17 12:42:28 +02:00
Roman Perekhod 6363fc260a Merge pull request #11543 from 2403905/issues/OCISDEV-209
fix: [OCISDEV-209] fix graph create link endpoint
2025-07-18 09:31:49 +02:00
Roman Perekhod 240cd3e44e fix: [OCISDEV-209] fix graph create link endpoint 2025-07-17 22:41:54 +02:00
Roman Perekhod 1157aedf0e fix: [OCISDEV-198] Fix space root handling in a graph sharedByMe 2025-07-16 08:57:26 +02:00
Roman Perekhod 757fc04e55 Fix the expiration date response for links 2025-07-11 00:18:50 +02:00
Michal Klos 4b45d09fb2 feat: [OCISDEV-60] add GET /v1bea1/drives/<drive-id>/items/<item-id>/permissions support 2025-07-07 18:07:30 +02:00
Lukas Hirt 6c102b4c5e fix: return translated role definitions
Instead of always returning the role definitions in English,
we now return the role definitions in the language set in the  header if present.
2025-06-26 11:42:33 +02:00
Michal Klos ef0f1acef2 chore: cleanup make generate, go vet is now clean 2025-06-17 18:18:56 +02:00
Michal Klos 7150688853 fix: spaces, list available shares, avoid early 5XX 2025-05-09 15:18:14 +02:00
Julian Koberg b3df44deda feat(graph): allow setting spaceids through API
Signed-off-by: Julian Koberg <jkoberg@MBP-Julian-Koberg.local>
2025-04-23 13:52:52 +02:00
Roman Perekhod 74cf69b5ec limited the length of tags 2025-04-15 12:20:16 +02:00
Michal Klos 5e3fac4665 feat: graph, log all member space management errors with verbose info 2025-03-12 11:20:37 +01:00
Julian Koberg b979844791 feat(ocis): adjust reva imports
Signed-off-by: Julian Koberg <jkoberg@MBP-Julian-Koberg.local>
2025-03-05 11:14:44 +01:00
Julian Koberg f2b8891fcf fix(graph): log errors when deleting personal spaces
Signed-off-by: Julian Koberg <jkoberg@MBP-Julian-Koberg.local>
2025-02-19 16:32:05 +01:00
Julian Koberg c14fd7a05c fix(graph): fix build after package bump
Signed-off-by: Julian Koberg <jkoberg@MBP-Julian-Koberg.local>
2025-02-17 15:44:30 +01:00
Roman Perekhod 6b3a4975c5 The graph drives invite response now includes the createdDateTime field 2024-12-17 19:25:24 +01:00
Ralf Haferkamp 565f58c68a fix(graph): Don't return OCM shares in the drives list
OCM shares don't have mountpoints currently. So they're no supposed
to show up in the drives list on the graph service.

Fixes: #10689
2024-12-04 14:48:56 +01:00
Jörn Friedrich Dreyer 9fea5c3002 graph concurrent share listing
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-11-28 16:52:54 +01:00
Michael Barz bac2256c5f fix: fix deny access to prevent a regression 2024-11-25 11:32:31 +01:00
Jörn Friedrich Dreyer ff9d11ad1a reuse go-micro service clients
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-11-15 17:18:39 +01:00