Commit Graph

58936 Commits (b23b45ede40ed063abfed063e29c47e30635e95e)
 

Author SHA1 Message Date
John Molakvoæ eb8b7b8218
Merge pull request #30686 from nextcloud/backport/30499/stable21 2022-01-17 08:57:06 +07:00
Nextcloud bot ad9fbd70c4
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-01-17 02:26:11 +07:00
John Molakvoæ f3df26e22a
Merge pull request #30665 from nextcloud/backport/30530/stable21 2022-01-16 12:01:18 +07:00
Nextcloud bot 2bfcbe4aba
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-01-16 02:27:26 +07:00
Nextcloud bot 69af22659a
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-01-15 02:27:26 +07:00
Anderson Luiz Alves 1bc2905a4d files_external SMB: throw InvalidArgument when user is not set
Signed-off-by: Anderson Luiz Alves <alacn1@gmail.com>
2022-01-14 17:11:06 +07:00
John Molakvoæ 361303d838
Merge pull request #30677 from nextcloud/backport/stable21/30597 2022-01-14 17:30:45 +07:00
Vincent Petry 21e12e1c4f Remove inefficient fed share scanner
Remove scanAll which relies on the "shareinfo" endpoint that returns the
full cache tree.
The latter can become big for big shares and result in timeouts.
Furthermode, the full tree would be retrieved again for each and every
detected change which can become expensive quickly.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-01-14 16:09:00 +07:00
John Molakvoæ 08c6f1c478
Merge pull request #30676 from nextcloud/backport/30275/stable21 2022-01-14 16:45:44 +07:00
Carl Schwan 396157af18 Fix psalm issues
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-01-14 14:16:59 +07:00
Carl Schwan 73e402f715 Add helper method in Wrapper
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-01-14 14:16:54 +07:00
Carl Schwan a735773d71 The storage is not static anymore
Don't call twice $cache->getId

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-01-14 14:16:53 +07:00
Carl Schwan 31fb8d0c71 Optimize FileSystemTags workflow for groupfolder
In https://github.com/nextcloud/server/pull/28774 we disabled the
caching for the groupfolder application since it worked due to the fact
that in groupfolders, getFileIds could be called with the same $cacheId
and path for actually different groupfolders.

This revert this change and instead add the folderId from the
groupFolder to the cacheId. This solve the issue of the uniqueness of
the cacheId inside GroupFolder. Downside is that we introduce
groupfolder specific implementation inside the server repo.

The seconf optimization is to not consider paths starting with
__groupfolders in executeCheck. This is due to the fact that files in
the groupfolder application call two times executeCheck one time with
the url __groupfolder/<folderId>/<path> and the other time with <path>.
The first time will always return an empty systemTags array while the
second call will return the correct system tags.

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-01-14 14:16:51 +07:00
Carl Schwan 990259f9d8
Merge pull request #30669 from nextcloud/backport/30363/stable21
[stable21] improve accessibility settings on mobile
2022-01-14 14:11:43 +07:00
Arthur Schiwon 3c12390b5d
21.0.8 RC2
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-01-14 12:52:29 +07:00
blizzz 0738110f01
Merge pull request #30667 from nextcloud/backport/30568/stable21
[stable21] Fix primary key change in user_ldap migration
2022-01-14 12:20:45 +07:00
Carl Schwan 258e0166af
Fix file picker not respecting hidden files settings
This will only respect the setting inside the file app. For other apps
we will either need to do an API call or add an input field with the
same idea to spare a blocking api call.

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
(cherry picked from commit 1fa58be1aa)
2022-01-14 12:11:14 +07:00
Joas Schilling 8263209ffa Add version of disabled apps when available
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-01-14 11:09:41 +07:00
szaimen 8a4ab10a8b address 2nd review
Signed-off-by: szaimen <szaimen@e.mail.de>
2022-01-14 09:38:55 +07:00
szaimen c9d93744b0 address review
Signed-off-by: szaimen <szaimen@e.mail.de>
2022-01-14 09:38:54 +07:00
szaimen af87126c78 improve accessibility settings on mobile
Signed-off-by: szaimen <szaimen@e.mail.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-01-14 09:38:51 +07:00
Carl Schwan e966ddea8a
Merge pull request #30642 from nextcloud/backport/30600/stable21
[stable21] Fix idn emails not working in shares
2022-01-14 10:07:47 +07:00
John Molakvoæ 99e3b61ff5
Fix linkToRoute 2022-01-14 09:48:44 +07:00
Côme Chilliet 7ebbee52b7 Remove useless indexes with duplicated names on backup table
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-01-14 08:43:46 +07:00
Joas Schilling c49bb41ef9 Update autoloader
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-01-14 08:43:45 +07:00
Côme Chilliet 417e76cd2d Fix user_ldap migration for long DNs support
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-01-14 08:43:45 +07:00
Côme Chilliet a56ef49033 Move duplicated code to a base class for group_mapping migrations
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
2022-01-14 08:43:44 +07:00
Côme Chilliet 655dfcda01 Split dropTable and createTable in two migrations
It is not possible to drop and create the same table in one migration

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-01-14 08:43:43 +07:00
Côme Chilliet e9d7ab15fc Fix primary key change in user_ldap migration
Use a backup table to copy the data, drop table and recreate it with
 correct primary key, then copy the data back and drop the backup table.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-01-14 08:43:42 +07:00
John Molakvoæ 3500ef156a Fix wrong unified search link to folder
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-01-14 08:38:22 +07:00
John Molakvoæ 19e6ffd878
Merge pull request #30596 from nextcloud/fix/static_analysis 2022-01-14 08:46:37 +07:00
John Molakvoæ 6b94630f44
Implement multibucket shift for ObjectStore
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-01-14 08:39:37 +07:00
Nextcloud bot 46d6e26480
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-01-14 02:28:27 +07:00
MichaIng c7e45eee58
Merge pull request #30599 from nextcloud/backport/29118/stable21
[stable21] add better index for finding unindexed paths
2022-01-13 23:02:21 +07:00
Louis Chemineau 9227e4e6ba Fix static analysis on CI
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-01-13 18:10:24 +07:00
Carl Schwan 2f10bc14f7
Fix idn emails not working in shares
And add check before sending email that email address is valid

Fix #30595

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-01-13 17:19:28 +07:00
Robin Appelman 3a1935b7ff
add better index for finding unindexed paths
for the following query 'SELECT "path" FROM "oc_filecache" WHERE ("storage" = $storage) AND ("size" < 0) ORDER BY "fileid" DESC LIMIT 1;'

currently the database will in some cases decide to priorize the sort by fileid over the filter when picking what index to use, resulting in a much slower query.

by creating an index that allows first sorting by fileid and also filter by storage and size this case will be greatly sped up

Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-01-13 15:48:14 +07:00
Vincent Petry 09c350c576
Merge pull request #30638 from nextcloud/backport/30620/stable21
[stable21] Properly abort uploads
2022-01-13 11:36:06 +07:00
Vincent Petry 3a230b8dba Properly hide progress bar after error
Whenever an error occurs, also hide the progress bar.

The logic was also adjusted to properly detect uploads that are pending
deletion, in which case the progress bar can already be hidden.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-01-13 08:35:52 +07:00
Vincent Petry 7ac4856b10 Properly abort uploads
Add a new approach for flagging an upload as aborted because we can't
rely on the browser fully cancelling the request as we now seem to
receive an error response from the server instead of a jQuery "abort"
message.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-01-13 08:35:51 +07:00
Nextcloud bot bbdc84ef1c
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-01-13 02:26:53 +07:00
Louis Chemineau 67ccb325ef Update lib/private/BackgroundJob/JobList.php
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-01-12 17:44:33 +07:00
Vincent Petry 4b47030f17
Merge pull request #30629 from nextcloud/backport/30593/stable21
[stable21] Trigger "changeDirectory" event on URL change
2022-01-12 17:43:39 +07:00
Julius Härtl 04e8861192 Reset job disabling timer on adding the job again
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-01-12 15:14:51 +07:00
Vincent Petry 672669ca98 Trigger "changeDirectory" even on URL change
When using the browser back button or clicking on sections on the left
sidebar (like favorites), the "changeDirectory" jQuery event did not get
called, so apps like recommendations would not notice the directory
change.

This fixes the issue by also setting changeUrl to true when the file
list's directory got changed as a result from a URL change.

Added optional changedThroughUrl argument to make sure the event
recipient knows if the change was done through a URL change and make it
possible prevent a loop in the onDirectoryChange handler that actually
changes the URL when the origin was already from a URL change.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-01-12 13:56:58 +07:00
Vincent Petry b8957cd6f3
Merge pull request #30617 from nextcloud/backport/30609/stable21
[stable21] Fix RequestURL check for cli commands
2022-01-12 14:42:53 +07:00
Joas Schilling 6c9fa27850
Merge pull request #30601 from nextcloud/backport/30291/stable21
[stable21] Prevent loading images that would require too much memory.
2022-01-12 13:50:22 +07:00
Carl Schwan 056b109b69 Fix RequestURL check for cli commands
Fix https://github.com/nextcloud/files_automatedtagging/issues/526

Fix https://github.com/nextcloud/groupfolders/issues/1855

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-01-12 09:07:01 +07:00
Nextcloud bot b7f3c7c8d6
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-01-12 02:27:17 +07:00
Joachim Bauch 3ad763cf18 Prevent loading images that would require too much memory.
For most image formats, the header specifies the width/height.
PHP allocates an image object from that size, even if the actual
image data is much smaller. This image object size is not limited
by the limit configured in PHP.

The memory limit can be configured through "config.php" setting
"preview_max_memory" and defaults to 128 MBytes which should be
enough for most images without filling up all memory.

Signed-off-by: Joachim Bauch <bauch@struktur.de>
2022-01-11 14:48:27 +07:00