Commit Graph

447 Commits

Author SHA1 Message Date
jkoberg
16106b0ac5 use id for events
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-01-11 14:48:42 +01:00
jkoberg
2a41ad4218 fix language patching
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-01-11 11:49:01 +01:00
Florian Schade
465c9e3c20 fix: allow one invite at a time only and implement related validations and http status code handling 2024-01-09 17:17:02 +01:00
Ralf Haferkamp
dca0c653fb Removed deprecated envars scheduled for removal with 5.0.0
Fixes: #8025
2024-01-09 11:28:31 +01:00
Ralf Haferkamp
a1ed2ce2e5 graph/groups: Handle quoted search terms in GetGroups
Fixes: #7990
2023-12-21 13:57:26 +01:00
Ralf Haferkamp
8489170715 graph/users: More test coverage for GetUsers search 2023-12-21 13:57:26 +01:00
Juan Pablo Villafáñez
1bcc559ed8 fix: adjust min search length if double quotes are used 2023-12-20 17:24:44 +01:00
Juan Pablo Villafáñez
34bb4f80ed fix: double quotes will be trimmed from the search token 2023-12-20 17:24:44 +01:00
jkoberg
e1fad5c6e9 make nats-js-kv the default registry
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-12-19 12:13:28 +01:00
jkoberg
de4f9d78f4 allow authentication for stores
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-12-19 10:44:05 +01:00
jkoberg
3e55223f2d allow authentication for events
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-12-19 10:44:05 +01:00
kobergj
377a23ee7d Non-durable SSE streams (#7986)
* make sse streams non-durable

Signed-off-by: jkoberg <jkoberg@owncloud.com>

* bump reva

Signed-off-by: jkoberg <jkoberg@owncloud.com>

---------

Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-12-18 11:47:25 +01:00
Ralf Haferkamp
3eb78bb6cc graph: fix missing return after error in UpdateShare 2023-12-15 14:48:54 +01:00
Ralf Haferkamp
419619041b graph sharing: Avoid usage for deprecated CS3 Request attributes
The sharereference attribute in the CS3 UpdateShareRequest is deprecated.
Set the shareid via the Share.ID attribute.
2023-12-15 14:48:54 +01:00
kobergj
423c28b298 improve store readmes
Co-authored-by: Martin <github@diemattels.at>
2023-12-15 13:25:10 +01:00
jkoberg
d62cb9d34b use inmemory cache by default
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-12-13 12:49:54 +01:00
jkoberg
ad87ac955a configure services individually
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-12-13 12:49:54 +01:00
jkoberg
bbc4f83f7d bump dependencies
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-12-13 12:49:53 +01:00
Michael Barz
703a116e43 fix: missing return statement 2023-12-13 00:06:59 +01:00
Michael Barz
33feab88a7 test: add more tests 2023-12-11 22:20:29 +01:00
Michael Barz
e7a7b3001d style: refactor error handling 2023-12-11 22:20:29 +01:00
Michael Barz
416b518873 fix: wrong error code for failed precondition 2023-12-11 22:20:29 +01:00
Michael Barz
3931578d4c test: fix existing tests 2023-12-11 22:20:29 +01:00
Michael Barz
fe48dc148a feat: implement edit public link 2023-12-11 22:20:29 +01:00
Michael Barz
8aad8dd4d3 feat: add setPassword endpoint 2023-12-11 22:20:29 +01:00
Ralf Haferkamp
269ce605dd graph sharing: Implement UpdatePermissions
This is an initial implementation of PATCH support on drives/{driveid}/items/{itemid}/permissions/{id}.
It focusses on updating user shares for now. It's possible to update the
expirationDate, roles and/or libregraphResourceActions.
Updating the permissions of a space root or a public link share is currently
not implemeted.
2023-12-08 10:55:12 +01:00
Ralf Haferkamp
dbf23a9738 graph sharing: Properly dereference errorcode.Error before returning
Otherwise errorcode.RenderError() will not render the correct HTTP Status
2023-12-08 10:55:12 +01:00
Ralf Haferkamp
7b40fdcbf7 graph sharing: Add help to convert CS3 share to libregraph.Permission 2023-12-08 10:55:12 +01:00
Ralf Haferkamp
1ace257064 graph/groups: Allow unprivileged users to search for groups 2023-12-07 10:21:45 +01:00
Ralf Haferkamp
6fab0ad05a graph/users: Fix http status codes for unprivileged requests
Neither 'BadRequest' (as expected in the unit test) nor 'Unauthorized' (as expected
in the API tests) seem correct here. We're no returning 'Forbidden' when an unprivileged
users issues a GetUsers request that it is not allowed to perform.
2023-12-07 10:21:45 +01:00
Ralf Haferkamp
4cb6d99e88 graph/users: Make minimum search term length configurable 2023-12-07 10:21:45 +01:00
Ralf Haferkamp
20870380b1 graph/users: Return 'userType' for request from unprivileged users 2023-12-07 10:21:45 +01:00
Ralf Haferkamp
d0289694e4 graph/users: Add unittests for unprivileged user search 2023-12-07 10:21:45 +01:00
Ralf Haferkamp
795989e0aa graph/users: Use a full substring filter of user search
Previously we only did a prefix match.
2023-12-07 10:21:45 +01:00
Juan Pablo Villafáñez
6226598057 test: fix unit tests 2023-12-07 10:21:45 +01:00
Juan Pablo Villafáñez
d86352dccd feat: list users as regular user 2023-12-07 10:21:45 +01:00
Dominik Schmidt
76753635fd feat(location): add driveItems test 2023-12-06 15:13:09 +01:00
Dominik Schmidt
d9d1e96c82 fix: tests without initialized arbitrary metadata 2023-12-06 15:13:09 +01:00
Dominik Schmidt
4c27b365fa feat(graph): add location facet to driveItems 2023-12-06 15:13:09 +01:00
Michael Barz
1f9c6d44b4 feat: improve expiration date handling 2023-12-06 12:16:14 +01:00
Michael Barz
0b7162204a feat: handle more status codes 2023-12-06 12:16:14 +01:00
Michael Barz
1fd3032f02 style: cleanup code style 2023-12-06 12:16:14 +01:00
Florian Schade
34f3ab66c1 feature: add beta drive listing endpoints to the graph api (#7861)
* feature: add beta drive listing endpoints to the graph api and hydrate them to contain the new grantedtoV2 property and use unified roles instead of the cs3 roles

* enhancement: make use of owner conditions for drive listing

* enhancement: provide GetDrivesV1Beta1 and GetAllDrivesV1Beta1 graph endpoint tests
2023-12-06 10:01:38 +01:00
Artur Neumann
fcd13cf9b8 return only single permission on link creation 2023-12-05 11:15:49 +05:45
Artur Neumann
3f476680a3 return 200 and not 201 when creating sharing link 2023-12-04 17:41:05 +05:45
Christian Richter
fb514c2ff1 allow whitespaces in contains & startsWith Filter
Signed-off-by: Christian Richter <crichter@owncloud.com>
2023-12-01 11:28:40 +01:00
Jörn Friedrich Dreyer
d6cb6eeaa3 allow creating an upload session via graph (#7712)
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2023-11-30 17:29:15 +01:00
Ralf Haferkamp
afb127090d graph sharing: delete link permission
Allow to delete link permissions (i.e. Public Shares)
2023-11-30 13:39:26 +01:00
Ralf Haferkamp
9d3523e310 graph/errocode: Rework FromCS3Status
The handling of 'error' has been moved from FromStat() to FromCS3Status().
It's generally useful for other users of FromCS3Status()
2023-11-30 13:39:26 +01:00
Ralf Haferkamp
faf0e242cd graph/errorcode: Map a few more CS3 status codes 2023-11-30 13:39:26 +01:00