Commit Graph
41 Commits
Author SHA1 Message Date
David Walter b308470890 fix(graph): keep shares visible in sharedWithMe when a resource cannot be statted (#12430) 2026-06-26 10:33:47 +02:00
Roman Perekhod 763f368133 feat: [OCISDEV-531] Disable public link sharing for vault resources (#12321) 2026-05-19 11:56:23 +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
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
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
Ralf Haferkamp 336d34821f fix(linter): Avoid copying protobuf messages
This shoud silence some linter warning about copying lock values.
2024-11-07 16:46:17 +01:00
Ralf Haferkamp 4792071d3d fix(graph): Use the correct opaqueId when Statting OCM shares
File shares need to use the base64 encoded path as the opaqueID, while
for folder shares the base64 encode '/' should work.

Fixes #10495
2024-11-07 16:41:04 +01:00
Jörn Friedrich Dreyer 9db7871f4c continue listing shares on error
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-10-04 15:44:10 +02:00
jkoberg 6e7bafb9e7 fix(graph): avoid panic when deleting ocm shares
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-10-02 11:24:56 +02:00
Florian Schade 4b09399ab9 chore: merge master 2024-08-27 18:22:13 +02:00
Florian Schade 2f9c6c86ea Merge branch 'master' into toggle-unified-roles 2024-08-27 17:43:05 +02:00
Jörn Friedrich Dreyer 18037f530e fix listing ocm properties
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-08-26 16:42:59 +02:00
Jörn Friedrich Dreyer 6d465575f4 List OCM permissions as graph drive item permissions
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-08-23 11:36:45 +02:00
Florian Schade e348ac290e enhancement: only use allowed roles for the graph service 2024-08-21 14:08:39 +02:00
Florian Schade 196c988b8c enhancement: add unified roles filters 2024-08-21 14:08:38 +02:00
Jörn Friedrich Dreyer 966b4e1422 allow querying federated sharing roles
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-08-12 11:29:39 +02:00
Roman Perekhod 7f9e018c7c Fixed the channel lock in a workers pool 2024-07-18 15:33:50 +02:00
Ralf Haferkamp 26b4927ed8 Address go-vet reported issues
mainly "copylocks: return copies lock value" related things
2024-07-11 16:59:25 +02:00
Ralf Haferkamp ff6674f97b Fix fallout of reva bump
reva tries to avoid copying proto messages now. This changed some calls
to take pointers now (mainly e.g. FormatResourceId())
2024-07-11 15:21:56 +02:00
Jörn Friedrich Dreyer ab338884c6 rudimentary OCM support in graph
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-06-24 12:07:21 +02:00
Florian Schade 11fb3eb3c0 fix(sharing-ng): permission listings for personal and virtual drive items 2024-06-21 13:57:24 +02:00
Florian Schade f34bb510b0 enhancement: inject the creation time into sharing permissions 2024-04-25 11:54:54 +02:00
Florian Schade b8ed049487 Enhancement: Ability to Change Share Item Visibility in Graph API (#8750)
* Enhancement: Ability to Change Share Item Visibility in Graph API

Introduce the `PATCH /graph/v1beta1/drives/{driveID}/items/{itemID}` Graph API endpoint which allows updating individual Drive Items.

* fix: failing tests

* fix: consider siblings when updating shares

* fix: reduce sharing service provider interface
2024-04-22 17:24:45 +02:00
Jörn Friedrich DreyerandFlorian Schade 7a635738fa always use error interface when returning errors (#8816)
* always use error interface when returning errors

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* fix: use non pointer Error

* fix: errorcode evaluation

---------

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Co-authored-by: Florian Schade <f.schade@icloud.com>
2024-04-12 10:30:49 +02:00
Ralf Haferkamp 9ca9b78b2b fix(sharing-ng): Adapt role conditions to match resource types
This switches our hardcode unfied role conditions to better reflect what
we're actually using them before. The new conditions also allow to differentiate
between roles elgitible for files, folders or drive roots.
Which means that the `/permissions` endpoint is now able to populate the
`roles.allowedValues` field with the correct roles for type of the resource
it is called for.

Fixes: #8331
2024-04-12 10:09:13 +02:00
jkoberg b174b005e7 remove resharing
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-04-05 10:19:14 +02:00
jkoberg db346dff10 make readmes translateable
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-03-26 13:35:07 +01:00
jkoberg 1bc59de021 fix graph tests
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-03-26 10:41:42 +01:00
jkoberg 9785c6ba14 fix quota response on createdrive
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-03-25 12:26:35 +01:00
Ralf Haferkamp dcdbfd81d4 chore: rework cs3ReceivedSharesToDriveItems to make linter happy 2024-03-18 11:53:57 +01:00
Ralf Haferkamp 2352145b98 graph(sharing-ng): Permission on Spaceroots need to have an id
In order to work with (e.g. get/delete) permissions granted to space
we need to give them a stable id. As the CS3 API don't provide an id
we generate it base on the id of the identity that the permission applies
to. For users we use "u:<userid>" for groups "g:<groupid>".

Closes: #8352
2024-03-18 11:53:57 +01:00
jkoberg a0e2648200 get template from request
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-03-07 13:01:51 +01:00
jkoberg edbc82bfc1 poc: server side space defaults
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-03-07 13:01:51 +01:00
Ralf Haferkamp 83f9db3152 Fix typos 2024-02-28 17:29:04 +01:00
Ralf Haferkamp 9d321bf379 enhancement(sharing): Return newly created driveItem
When accepting a share via 'POST /v1beta1/drives/{driveId}/root/children'
return the newly created driveItem. This driveItem wraps the accepted
remoteItem representing the shared resource (similar to the
'sharedWithMe' response.

This also refactors some of the helpers for user lookup and CS3 share to
driveItem conversion so they can be more easily shared.
2024-02-28 17:29:04 +01:00
Florian Schade 0bd97c9178 test: improve graph share accept/decline test coverage 2024-02-28 17:29:04 +01:00
Florian Schade cad0d944eb enhancement: handle share mount errors 2024-02-28 17:29:04 +01:00
Florian Schade 91f0667f1f feature(sharing): add endpoints to accept or decline a share 2024-02-28 17:29:04 +01:00
Florian Schade ad06a192d8 enhancement: add graph beta listPermissions endpoint (#7753)
* enhancement: add graph beta listPermissions endpoint

besides the new api endpoint it includes several utilities to simplify the graph api development.

* resolve drive and item id from the request path
* generic pointer and value utilities
* space root detection

* update GetDriveAndItemIDParam signature to return a error

* move errorcode package

* enhancement: add generic error code handling

* fix: rebase
2023-11-28 17:06:04 +01:00
Michael Barz 2ca74a0e9a fix: incorporate code review 2023-11-28 14:56:12 +01:00
Daniel Swärd 620940ec3f graph: Add strict json decoding to return errors when receiving unknown parameters 2023-04-03 15:39:23 +02:00