Commit Graph

262 Commits

Author SHA1 Message Date
Michael Barz
a129ea6abe fix unit tests 2022-09-15 10:42:00 +02:00
Michael Barz
23da13b35f add web url to graph api and update reva 2022-09-15 09:30:36 +02:00
Jörn Friedrich Dreyer
d4d2fefb80 forward trace context in graph service (#4582)
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2022-09-14 14:23:15 +02:00
Ralf Haferkamp
fffd49fc4e Introduce "noop" go-micro broker
This introduces a no op broker for go-micro. It is set as the default
broker for all ocis http services. To avoid starting the default http
broker, which opens an unused random http port.

Fixes: https://github.com/owncloud/ocis/issues/3829
2022-09-14 12:22:23 +02:00
David Christofas
b71eeb9f54 Merge pull request #4578 from owncloud/web-configuration-applications
allow to configure applications for web
2022-09-14 11:32:14 +02:00
Jörn Friedrich Dreyer
2d445c6e95 fix search report webdav permissions (#4579)
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2022-09-14 11:22:51 +02:00
Willy Kloucek
1caffa3bb8 allow to configure applications for web 2022-09-14 10:09:38 +02:00
André Duffeck
6bcf17a7cc Add config variable for configuring the jsoncs3 share manager cache ttl 2022-09-13 16:25:46 +02:00
Jörn Friedrich Dreyer
b0fa917eae enable a 300sec in memory cache for resource infos when listing shares on the ocs API (#4438)
* enable a 300sec in memory cache for resource infos when listing shares on the ocs API

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

* lint

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

* disable ocs cache by default

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

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2022-09-12 16:05:24 +02:00
Michael Barz
1e82d80c1d Merge pull request #4548 from aduffeck/jsoncs3-publicshare-manager
[full-ci] Add support for the jsoncs3 public share manager
2022-09-09 21:16:01 +02:00
Benedikt Kulmann
bb54554cdb chore: bump web to v5.7.0 (final) 2022-09-09 20:07:17 +02:00
Andre Duffeck
291e191490 Update services/sharing/pkg/revaconfig/config.go
Co-authored-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2022-09-09 15:33:31 +02:00
Andre Duffeck
a107924a4c Update services/sharing/pkg/config/config.go
Co-authored-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2022-09-09 15:25:06 +02:00
Jörn Friedrich Dreyer
40b7aaa7ec make jsoncs3 default public share backend
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2022-09-09 11:54:18 +00:00
André Duffeck
1f68321acc Add support for the jsoncs3 public share manager 2022-09-09 13:07:01 +02:00
Benedikt Kulmann
01f6ca12f0 chore: update web to v5.7.0-rc.13 2022-09-09 10:56:04 +02:00
Benedikt Kulmann
dce41c34c5 Merge pull request #4508 from owncloud/update-web-5.7.0-rc.11
[full-ci] update web to v5.7.0-rc.11
2022-09-08 14:55:20 +02:00
David Christofas
3640243492 update reva and jsoncs3 share manager config 2022-09-08 13:22:17 +02:00
Benedikt Kulmann
0815eebb3c chore: update web to v5.7.0-rc.11 2022-09-08 13:10:40 +02:00
jkoberg
2f97fa7036 REPORT: add permissions to personal space
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2022-09-08 12:31:13 +02:00
Michael Barz
88a28ca8cd Merge pull request #4532 from rhafer/issue/4195
Fix home space deletion when deleting user by name
2022-09-07 20:34:05 +02:00
Ralf Haferkamp
e5543d4465 Add new "delete-all-spaces" permission
This is assigned to the Admin role by default and allows to cleanup
orphaned spaces (e.g. where the owner as been deleted)

Fixes: #4196
2022-09-07 18:21:26 +02:00
Ralf Haferkamp
f43a233795 Fix home space deletion when deleting user by name
DELETE requess on /graph/v1.0/users also work when specifing a user by
name. For deleting the home space in that case we need to get the User's
id from the backend first.

Fixes: #4195
2022-09-07 18:13:41 +02:00
Michael Barz
746a532a76 Merge pull request #4528 from rhafer/issue/4195
graph: purge home space when deleting a user
2022-09-07 15:53:29 +02:00
Ralf Haferkamp
8ee8842e88 proxy: Avoid sorting endpoints for every single request
The endpoints are no longer hashed by path name in the directors map since
that made iterating over the endpoints unstable. They are now stored in a
slice in the order in which the are defined in the configuration.

Closes: #4497
2022-09-07 14:30:19 +02:00
Ralf Haferkamp
2c6eb888a8 proxy: Clarify comment 2022-09-07 14:30:19 +02:00
Ralf Haferkamp
ab0c82311a proxy: Fix archiver for public links
Allows /archiver to be used the "public-token" auth middleware. The
archiver is a bit of a special case, because it can be uses in several
ways: using 'normal' authentication (basic, oidc), using signed-urls or
using sharetokens. As only the "sharetoken" part is handled by the
"PublicShareAuth" middleware, we needed to special-case it a bit.
2022-09-07 14:30:19 +02:00
Ralf Haferkamp
30f4d788f3 proxy: Initialize logger for router 2022-09-07 14:30:19 +02:00
Ralf Haferkamp
e4f9dfa40e graph: purge home space when deleting a user
previously the homespace was just marked as trashed

Fixes: #4195
2022-09-07 14:25:27 +02:00
David Christofas
b47409dfc6 Merge pull request #4513 from owncloud/orientate-thumbnails
auto orientate pictures for thumbnails
2022-09-06 09:32:48 +02:00
David Christofas
bff9c2b3cd auto orientate pictures for thumbnails 2022-09-05 16:33:29 +02:00
David Christofas
c181e1d392 Merge pull request #4436 from aduffeck/jsoncs3-share-manager
Jsoncs3 share manager
2022-09-05 16:16:18 +02:00
Ralf Haferkamp
29f52515e1 graph: Fix Status code when updating the password
Up to now the /me/changePassword endpoint return a 500 Status when
issue a password change with the old password set to the wrong password.
This changes the code to return 400 (Bad Request) with an additional
message that the old password is wrong. This does not seem to weaken the
security of /me/changePassword (i.e. for allowing easier brute-force
attacks) as the endpoint is only available to already authenticated
users (and only for changing their own passwords)

See #4480
2022-09-05 15:57:46 +02:00
Jannik Stehle
213a68ec69 Fix translations on login page 2022-09-02 15:07:54 +02:00
jkoberg
3f5585628d adjust REPORT to PROPFIND endpoint
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2022-09-02 15:02:06 +02:00
Jannik Stehle
123ae47fe1 Merge pull request #4500 from owncloud/login-screen-design
Improve login screen design
2022-09-02 14:58:19 +02:00
David Christofas
2051f0d1e1 Merge pull request #4447 from dragonchaser/delete_userspace
Delete userspace
2022-09-02 14:41:57 +02:00
Jannik Stehle
a9fd209da8 Use cv11 as font feature setting 2022-09-02 13:51:59 +02:00
Jannik Stehle
99255c1cdd Add 'Inter' font, change placeholder color to grey 2022-09-02 13:47:52 +02:00
David Christofas
e36cd4fa7f add returns after rendering errors and simplify loop condition 2022-09-02 11:54:17 +02:00
Jannik Stehle
52b58cd1d9 Move background-size after the background css prop 2022-09-02 09:56:53 +02:00
Jannik Stehle
dff588a621 Improve login screen design 2022-09-02 09:46:32 +02:00
Ralf Haferkamp
fed62d4a1e Evaluate routing rules ordered by path-length
This is a quickfix for #4497. Before evaluating, we now sort the rules
of a specific type by the length of the endpoints and start evaluation
with the most specific endpoint first. There's obviously quite a bit
room for optimization here and this will only fix the issue for routes
of type `PrefixRoute`. But it should solve the immediate issue.
2022-09-01 17:07:17 +02:00
David Christofas
bfb26cc660 update tests 2022-09-01 12:43:32 +02:00
David Christofas
e20b2b1536 fix default policy and add changelog 2022-09-01 12:43:32 +02:00
David Christofas
69de4616b5 fix linting issues 2022-09-01 12:43:32 +02:00
David Christofas
90574268d9 add missing unprotected flag and fix proxy test 2022-09-01 12:43:32 +02:00
David Christofas
69ba80562e add unprotected flag to the proxy routes
I added an unprotected flag to the proxy routes which is evaluated by
the authentication middleware. This way we won't have to maintain a
hardcoded list of unprotected paths and path prefixes and we will
hopefully reduce the times we encounter the basic auth prompt by web
browsers.
2022-09-01 12:43:32 +02:00
David Christofas
4d4f3a16e1 refactor proxy code
I refactored the proxy so that we execute the routing before the
authentication middleware. This is necessary so that we can determine
which routes are considered unprotected i.e. which routes don't need
authentication.
2022-09-01 12:43:32 +02:00
Benedikt Kulmann
0341097430 fix: disable misconfigured default expiration date public links 2022-08-31 08:23:28 +02:00