Commit graph

58657 commits

Author SHA1 Message Date
Joas Schilling
c49bb41ef9 Update autoloader
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-01-14 08:43:45 +00: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 +00: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 +00: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 +00: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 +00:00
John Molakvoæ
19e6ffd878
Merge pull request #30596 from nextcloud/fix/static_analysis 2022-01-14 08:46:37 +01:00
Nextcloud bot
46d6e26480
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-01-14 02:28:27 +00: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 +01:00
Louis Chemineau
9227e4e6ba Fix static analysis on CI
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-01-13 18:10:24 +01: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 +01:00
Vincent Petry
09c350c576
Merge pull request #30638 from nextcloud/backport/30620/stable21
[stable21] Properly abort uploads
2022-01-13 11:36:06 +01: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 +00: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 +00:00
Nextcloud bot
bbdc84ef1c
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-01-13 02:26:53 +00: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 +01: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 +00: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 +01: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 +01: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 +00:00
Nextcloud bot
b7f3c7c8d6
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-01-12 02:27:17 +00: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 +00:00
Louis
2e61727e96
Merge pull request #30590 from nextcloud/backport/30571/stable21
[stable21] fix: only use jquery once it is available
2022-01-11 14:15:41 +01:00
Vincent Petry
89504e1aed
Merge pull request #30579 from nextcloud/backport/30565/stable21
[stable21] Fix fail when keys/files folder already exists
2022-01-11 14:07:23 +01:00
Vincent Petry
477a693bb2
Merge pull request #30583 from nextcloud/bugfix/noid/npm-ci-for-karma/stable21
[stable21] Use npm ci when running JS tests
2022-01-11 14:05:55 +01:00
Azul
97a938fe9f fix: only use jquery once it is available
publicpage.js is loaded very early and cannot rely on jquery being loaded already.

Move the use of `$` into the `DomContentLoaded` handler.

Signed-off-by: Azul <azul@riseup.net>
2022-01-11 10:34:36 +00:00
Vincent Petry
79d26e4d7f Fix fail when keys/files folder already exists
Fixes an issue with transfer ownership in move mode where the folder
"files_encryption/keys/files" already exists.

Instead of failing, its existence is checked before calling mkdir.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-01-11 10:15:40 +00:00
Vincent Petry
dcb121958d Update package-lock in build dir
It wasn't up to date with package.json

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-01-11 08:47:39 +00:00
Nextcloud bot
be642889ec
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-01-11 02:27:25 +00:00
Vincent Petry
eed0b7dbb1
Recompile JS
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-01-10 19:27:22 +01:00
Vincent Petry
9b5c5d0cfe
Fix JS tests after test lib updates
Prevent XHR during load by checking window.TESTING.
Adjust some expected values.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-01-10 19:08:28 +01:00
Vincent Petry
9fb5d00145
Make chokidar happy with fsevents
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-01-10 19:08:18 +01:00
Vincent Petry
a0fefaa6a9
Update node deps for JS tests
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-01-10 19:06:40 +01:00
Vincent Petry
3fd15e6ba2
Use npm ci when running JS tests
This makes sure that the pinned versions are selected correctly.
Fixes the colors.js incident.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-01-10 19:06:09 +01:00
Nextcloud bot
ea94d34845
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-01-10 02:26:52 +00:00
MichaIng
ec88a9c32e
Merge pull request #30559 from nextcloud/backport/30468/stable21
[stable21] Handle LocalServerException when scanning external shares
2022-01-09 21:28:05 +01:00
Carl Schwan
e18c8b5b40 Handle LocalServerException when scanning external shares
When remoteIsOwnCloud trows LocalServerException, the storage is
unavailable and instead of crashing the scanner, ignore the specific
storage.

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-01-09 17:46:42 +00:00
Nextcloud bot
0621eb9f60
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-01-09 02:26:41 +00:00
Simon L
62a9fd5b99
Merge pull request #30454 from nextcloud/backport/30420/stable21
[stable21] improve status modal
2022-01-08 11:41:49 +01:00
szaimen
a1fc749ee3 fix compiling
Signed-off-by: szaimen <szaimen@e.mail.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-01-08 09:35:51 +00:00
Nextcloud bot
ea96a9e7e0
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-01-08 02:26:44 +00:00
blizzz
dcbe5b9863
Merge pull request #30527 from nextcloud/backport/30511/stable21
[stable21]  update CRL after revocation of sharerenamer.crt
2022-01-08 00:54:39 +01:00
John Molakvoæ
efdc2f12fc
Merge pull request #30520 from nextcloud/release/21.0.8 2022-01-07 15:37:52 +01:00
John Molakvoæ
cf46808a7f
Merge pull request #30488 from nextcloud/backport/29780/stable21 2022-01-07 13:11:26 +01:00
MichaIng
5eb791a1d3
Merge pull request #30521 from nextcloud/backport/30515/stable21
[stable21] Remove iconv from dependencies and tests
2022-01-07 12:25:36 +01:00
Vitor Mattos
76ad3fa05f Update crl
Signed-off-by: Vitor Mattos <vitor@php.rio>
2022-01-07 11:25:20 +00:00
Joas Schilling
b9b586a19b
Merge pull request #30524 from nextcloud/backport/30492/stable21
[stable21] Fix passing on the parameter
2022-01-07 10:50:38 +01:00
MichaIng
768bf3c59a [stable22] Remove iconv from dependencies and tests
which is not used anymore since: https://github.com/nextcloud/server/pull/29470

Signed-off-by: MichaIng <micha@dietpi.com>
2022-01-07 10:19:13 +01:00
Joas Schilling
799b4d5a56
Fix passing on the parameter
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-01-07 09:32:20 +01:00
Joas Schilling
67a43a6ad4
Run migrations fully when reenabling an app
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-01-07 08:50:31 +01:00
John Molakvoæ
1c8c075f32
Merge pull request #30482 from nextcloud/backport/30423/stable21 2022-01-07 08:49:00 +01:00