Commit Graph

597 Commits

Author SHA1 Message Date
Roman Perekhod 457c0178b4 Merge pull request #9331 from 2403905/issue-9151
fixed the error translation from the statusCodeError type into a corresponding graph api  Error representation
2024-06-12 11:19:55 +02:00
ownClouders 50bed11e01 [tx] updated from transifex 2024-06-12 00:49:40 +00:00
Roman Perekhod eb95a2859d fixed the error translation from the statusCodeError type into a corresponding graph api Error representation 2024-06-11 22:42:45 +02:00
ownClouders c7b3940bf8 [tx] updated from transifex 2024-06-11 00:50:09 +00:00
Ralf Haferkamp 254c9d7c26 graph: Address linting issues 2024-06-06 09:22:52 +02:00
Ralf Haferkamp 184bd5d0d3 graph/users: use ListRoleAssignmentsFiltered when filtering by role
When filtering users by role-assignment we now use the new ListRoleAssignmentsFiltered
request to the settings service instead calling ListRoleAssignments for every single user.
This reduces the number of network roundtrips to the settings service to one (was one per
user before).

Related Issue: #8938
2024-06-06 09:22:52 +02:00
Ralf Haferkamp 96e59598d3 graph/users: small optimization for filter by role queries
When filtering by role assignment we now populate the
'appRoleAssignments' property of the returned users when the incoming
request contained and '$expand=appRoleAssignments'. This avoids having
to query the role assignments for all users in the result set a second
time.
The effect of this optimization depends a lot on the actual setup. In
single binary all-in-one installations it is rather small (this it saves
quite a few CPU cycles). In distributed setup it should be larger as it
reduces the number of network round trips to the settings service
significantly.
2024-06-06 09:22:52 +02:00
Michael Barz b892a9ab28 Merge pull request #9312 from owncloud/var-placeholders
docs: use placeholder for next release
2024-06-05 21:36:25 +02:00
Ralf Haferkamp 1b47707e2f settings: Add spec and stubs for ListRoleAssignmentsFiltered request 2024-06-04 11:00:09 +02:00
Michael Barz 5d99688161 docs: use placeholder for next release 2024-06-04 10:28:42 +02:00
Ralf Haferkamp c425c173c4 Fix capitalization of 'name' property in tests 2024-05-30 11:05:29 +02:00
Prarup Gurung 5327f90712 Used expirationDateTime key for graph api (#9278) 2024-05-30 11:05:29 +02:00
Jörn Friedrich Dreyer 7b47d55837 Merge pull request #9149 from owncloud/correct-servicenames
fix service names for userlog, graph, invitations, sse and web
2024-05-24 10:40:31 +02:00
ownClouders 088f04eee0 [tx] updated from transifex 2024-05-24 00:41:58 +00:00
Roman Perekhod 434141d6fb Merge pull request #9197 from 2403905/issue-8876
fix the status code for multiple mount and unmount share
2024-05-23 09:07:27 +02:00
ownClouders 40e06135e8 [tx] updated from transifex 2024-05-23 00:44:58 +00:00
ownClouders bac37771e2 [tx] updated from transifex 2024-05-22 00:43:57 +00:00
Ralf Haferkamp 72a6ea3cfa fix(graph): Fix tests after Uploader Role changes 2024-05-21 16:48:17 +02:00
Benedikt Kulmann 21a9992980 feat: add image and photo metadata to search (#8504)
* feat: add image and photo metadata to search
2024-05-21 10:21:15 +02:00
Roman Perekhod 8d30bd59f1 fix the status code for multiple mount and unmount share 2024-05-17 15:43:46 +02:00
Alex 9406da351b Fix typo in password.go (#9177)
* Fix typo in password.go
2024-05-15 15:07:27 +02:00
Jannik Stehle 779bf33fcc refactor: rename GetShares to GetSharesForResource
Rename this method to make more clear what it is about.
2024-05-14 10:30:42 +02:00
Jannik Stehle e74d041b72 tests: add unit tests for getting drive items via id 2024-05-14 10:30:42 +02:00
Jannik Stehle 4404235efa feat: add endpoint for getting drive items via id 2024-05-14 10:30:42 +02:00
Florian Schade e48ac55034 fix: provide more tests for the update drive endpoint, it now also considers regular error cases 2024-05-14 10:30:42 +02:00
Florian Schade 9e6bf2af3c enhancement: return a drive item from the update share drive item api endpoint 2024-05-14 10:30:42 +02:00
Florian Schade 5b4e83c9bf enhancement: use error codes in the drive item api 2024-05-14 10:30:42 +02:00
Florian Schade 4841240bff enhancement: add get share service method 2024-05-14 10:30:42 +02:00
Ralf Haferkamp eace09ca05 graph: Allow to set the identities property on users
Previously we only allowed setting the "identities" property on education users.
This changes move the related code to the main user object.
2024-05-13 17:22:37 +02:00
Jörn Friedrich Dreyer 799b12b8dd fix service names for userlog, graph, invitations, sse and web
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-05-13 17:04:01 +02:00
ownClouders 22a7ee7545 [tx] updated from transifex 2024-05-04 00:07:01 +00:00
ownClouders 947c56196c [tx] updated from transifex 2024-05-03 00:07:35 +00:00
ownClouders 3309b9c93c [tx] updated from transifex 2024-05-01 00:42:11 +00:00
Thomas Müller a8cbc612cc chore: remove unused return value from BindSourcesToStructs (#9033) 2024-04-30 18:18:31 +02:00
Jannik Stehle 57b63a3318 Merge pull request #8954 from fschade/graph-permission-c-time
enhancement: inject the creation time into sharing permissions
2024-04-29 17:43:22 +02:00
Jörn Friedrich Dreyer 32e44a9fdc Merge pull request #8989 from owncloud/log-and-trace-fixes
log and trace fixes
2024-04-29 17:13:52 +02:00
Jannik Stehle 1aeb30193a feat: add secure view share role
Adds a new share role "Secure View". This role is applicable for files, folders and spaces and only allows viewing them (and their content).
2024-04-29 09:42:31 +02:00
Jörn Friedrich Dreyer e41472234f log and trace fixes
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-04-26 17:03:49 +02:00
Thomas Müller bdbba929d0 feat: add CSP and other security related headers in the oCIS proxy service (#8777)
* feat: add CSP and other security related headers in the oCIS proxy service

* fix: consolidate security related headers - drop middleware.Secure

* fix: use github.com/DeepDiver1975/secure

* fix: acceptance tests

* feat: support env var replacements in csp.yaml
2024-04-26 09:10:35 +02:00
Florian Schade f34bb510b0 enhancement: inject the creation time into sharing permissions 2024-04-25 11:54:54 +02:00
jkoberg 17f213d7d4 fix initiatorids for graph events
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-04-23 15:06:23 +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
Roman Perekhod cd539311a5 fix unmount item from share 2024-04-15 14:43:13 +02:00
ownClouders 2ce8b84452 [tx] updated from transifex 2024-04-13 01:21:30 +00:00
Jörn Friedrich Dreyer 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
Ralf Haferkamp fe6986ec79 cleanup(graph): remove some resharing leftovers 2024-04-12 10:09:13 +02:00
ownClouders 01c2d9810a [tx] updated from transifex 2024-04-12 01:22:48 +00:00
jkoberg c1b28d4e18 enhancement(graph): improve translation context string
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-04-11 09:13:00 +02:00
Roman Perekhod 78d69e155c Merge pull request #8817 from 2403905/issue-8724
fix creating the drive item
2024-04-10 12:58:58 +02:00