Commit graph

20378 commits

Author SHA1 Message Date
Nextcloud bot
ba927cd185
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-05-09 02:29:04 +00:00
Nextcloud bot
14b9b6b60b
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-05-08 02:29:01 +00:00
Nextcloud bot
414725145b
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-05-06 02:28:49 +00:00
Joas Schilling
2232ff3eb1
Merge pull request #32241 from nextcloud/revert-32239-revert-32214-backport/32212/stable24
Revert "Revert "[stable24] Make the order of reactions reliable""
2022-05-05 18:57:15 +02:00
Nextcloud bot
e295f5a4a2
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-05-05 02:28:40 +00:00
blizzz
ee28bf89ba
Merge pull request #32236 from nextcloud/backport/31758/stable24
[stable24] Use sabre function directly rather than duplicating it
2022-05-04 14:46:44 +02:00
Nextcloud bot
c14b3004ee
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-05-04 02:30:46 +00:00
Nextcloud bot
10ea56bfe6
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-05-03 02:29:02 +00:00
blizzz
f44f022483
Revert "Revert "[stable24] Make the order of reactions reliable"" 2022-05-02 15:32:35 +02:00
blizzz
929c0f80e0
Merge pull request #32239 from nextcloud/revert-32214-backport/32212/stable24
Revert "[stable24] Make the order of reactions reliable"
2022-05-02 15:32:27 +02:00
Nextcloud bot
82dc13c3af
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-05-02 13:12:51 +00:00
blizzz
dde611b3ed
Revert "[stable24] Make the order of reactions reliable" 2022-05-02 14:46:24 +02:00
Côme Chilliet
03132f71c0
Trying without the use
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-05-02 10:25:20 +02:00
Côme Chilliet
281751e264
Use sabre function directly rather than duplicating it
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-05-02 10:25:08 +02:00
Joas Schilling
b806e1f009 Make the order of reactions reliable
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-04-28 17:43:22 +00:00
Robin Appelman
aae1769e60 Only need to setup root for groupfolders
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-25 17:39:29 +00:00
Vincent Petry
ff64a731b0
Merge pull request #32138 from nextcloud/stable24-directory-listing-optimize-add-submount
[stable24] optimize adding submount info to directory content
2022-04-25 19:33:58 +02:00
Carl Schwan
1bb4d7853f
Merge pull request #32134 from nextcloud/backport/32033/stable24
[stable24] Fix scanning app data with metadata
2022-04-25 18:56:52 +02:00
Robin Appelman
9dcc9b50e9
optimize adding submount info to directory content
no need to loop when we can do a hashtable lookup

Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-25 16:28:05 +02:00
Vincent Petry
af4258436b
Merge pull request #32118 from nextcloud/backport/32082/stable24
[stable24] use a lazy user for the file owner when listing a directory
2022-04-25 16:27:28 +02:00
Vincent Petry
bce6549588
Merge pull request #32087 from nextcloud/backport/32076/stable24
[stable24] use and cache root storage info if a share can't be resolved
2022-04-25 16:26:11 +02:00
Vincent Petry
59bff4746f
Merge pull request #32119 from nextcloud/backport/32112/stable24
[stable24] Add missing index for oc_mounts queries
2022-04-25 16:25:51 +02:00
Carl Schwan
953c8875db Fix scanning app data with metadata
Previously we were listening to change in the appdata folder but an
appdata scan didn't setup the file system, so the view was unavailable.

**Test plan:**

1. rm -rf data/appdata_...../preview data/<user>/Media
2. occ files:scan-app-data
3. occ files:scan <user>

No errors and the files and metadata are correctly removed from the
database too.

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-04-25 13:54:38 +00:00
Vincent Petry
8f34bc833c
Merge pull request #32116 from nextcloud/backport/32109/stable24
[stable24] Get not only time-sensitive next job from list but any when not in cron-mode
2022-04-25 15:16:28 +02:00
Robin Appelman
79672ed6d6 Use a lazy user for the file owner when listing a directory
Only getUID and getDisplayName are called on the file owner objects anyway
and we can get this information often without DB request

Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-25 14:59:29 +02:00
Vincent Petry
d1e244b859
Merge pull request #32065 from nextcloud/backport/32047/stable24
[stable24] Cache display name
2022-04-25 14:57:11 +02:00
Joas Schilling
c877bd3f7e
Fix older migrations to the version pattern
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-04-25 12:44:05 +02:00
Joas Schilling
723814c0fd
Add missing index
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-04-25 12:44:00 +02:00
Kirill Popov
edfba7f151 Get not only time-sensitive next job from list but any
Before the change webcron used to select
**only** time-sensitive tasks.

Signed-off-by: Kirill Popov <kirill.s.popov@gmail.com>
2022-04-25 10:34:09 +00:00
Robin Appelman
7b604c1516 use and cache root storage info if a share can't be resolved
as is a broken share will never be cached

Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-22 19:29:15 +00:00
Robin Appelman
c727beba9f only register mounts that are new from providers that are new during a full setup
this fixes cases where during the (partial) setup of a shared mount a full setup is triggered

Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-22 15:06:30 +00:00
blizzz
0450512711
Merge pull request #32062 from nextcloud/backport/32048/stable24
[stable24] cache storage info in memcache for 5m
2022-04-22 16:51:27 +02:00
blizzz
98a260940f
Merge pull request #32066 from nextcloud/backport/32045/stable24
[stable24] cache fullSetupRequired locally
2022-04-22 15:46:09 +02:00
Robin Appelman
6ca689aff8
cache display names in local memory before external memcache
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-22 15:22:16 +02:00
Carl Schwan
40ac4e8197
Update cache when display name change
This improve the correctness of the data

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-04-22 15:22:16 +02:00
Carl Schwan
3d49fe473a
Cache display name
This should saves some query in the share backend when displaying the
owner and it's not important if the display name is 10 minutes outdated
as it is very rare that this gets changed.

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-04-22 15:22:16 +02:00
blizzz
b9bfd5aba8
Merge pull request #32027 from nextcloud/backport/32024/stable24
[stable24] ignore forbidden files while scanning local storage
2022-04-22 11:38:04 +02:00
Robin Appelman
f7a0157589 cache fullSetupRequired locally
no need to hit redis every time

Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-22 09:36:02 +00:00
Robin Appelman
b2367f4567
cache storage info in memcache for 5m
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-22 10:43:13 +02:00
Robin Appelman
29dc5c8cb5 ignore forbidden files while scanning local storage
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-20 12:39:32 +00:00
Arthur Schiwon
543277cb43 log stacktrace for 'Backends provided no user object'
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-04-20 12:26:41 +00:00
Vincent Petry
478af60c18
Merge pull request #31826 from nextcloud/fix/log-why-credential-token-invalid
Log why the login token can't be used for credentials
2022-04-14 20:29:44 +02:00
Vincent Petry
396db12e8e
Merge pull request #31975 from nextcloud/bugfix/31952/fix-mail-link-share-password-expiration-settings
Adjust settings for mail link password
2022-04-14 17:51:13 +02:00
Vincent Petry
82f1344d33
Adjust settings for mail link password
Rename the settings and invert the meaning.
Increase default interval to one hour.
Changed the interval to be a number of seconds, to align with other
setting styles.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-04-14 14:13:47 +02:00
Vincent Petry
3ca797129c
Merge pull request #31839 from nextcloud/feat/metadata-server
Add a metadata service to store file metadata
2022-04-14 13:39:31 +02:00
Carl Schwan
1c7ecfc544 Fix an issue with the search backend update
And update autoloader

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-04-14 12:11:02 +02:00
Vincent Petry
58f5de08df
Merge pull request #31945 from nextcloud/fix/user_migration-use-exceptions
Adapt user_migration APIs to have information about failures
2022-04-13 18:55:37 +02:00
Vincent Petry
78c8e57896
Fix migrators according to exceptions
Fixed syntax errors.
Removed if condition for copyToFolder since it's void now.
Change signature of setMigratorVersions to also be void.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-04-13 16:52:40 +02:00
Côme Chilliet
a77ffe8593
Adapt user_migration APIs to have information about failures
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-04-13 16:52:39 +02:00
Vincent Petry
2c2b238008
Default to permanent link passwords
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-04-13 16:11:15 +02:00