Commit graph

59959 commits

Author SHA1 Message Date
Côme Chilliet
488e17cd44 Fix user_ldap migration for long DNs support
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-01-14 08:40:54 +00:00
Côme Chilliet
9a13fb0b0e 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:40:54 +00:00
Côme Chilliet
3d3bbf92aa 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:40:53 +00:00
Côme Chilliet
58cd5eb2e1 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:40:52 +00:00
Nextcloud bot
e0352ae684
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-01-14 02:28:20 +00:00
MichaIng
d876046dbe
Merge pull request #30644 from nextcloud/backport/30600/stable22
[stable22] Fix idn emails not working in shares
2022-01-13 23:04:06 +01:00
MichaIng
362294283b
Merge pull request #30598 from nextcloud/backport/29118/stable22
[stable22] add better index for finding unindexed paths
2022-01-13 23:01:26 +01:00
Carl Schwan
e8f6e062dd
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:16:21 +01:00
Robin Appelman
9f2b50db19
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:45:08 +01:00
Vincent Petry
b62f8795f3
Merge pull request #30637 from nextcloud/backport/30620/stable22
[stable22] Properly abort uploads
2022-01-13 11:35:46 +01:00
Vincent Petry
8a9fcb611e 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:32:41 +00:00
Vincent Petry
db64ed77ca 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:32:40 +00:00
Nextcloud bot
bf234ca442
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-01-13 02:26:46 +00:00
Vincent Petry
0ea69e4ca3
Merge pull request #30628 from nextcloud/backport/30593/stable22
[stable22] Trigger "changeDirectory" event on URL change
2022-01-12 17:43:13 +01:00
MichaIng
12d92650fd
Merge pull request #30622 from nextcloud/backport/30358/stable22
[stable22] Reset job disabling timer on adding the job again
2022-01-12 16:02:12 +01:00
Vincent Petry
67baa7662a 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:52:55 +00:00
Carl Schwan
29a3f2cd23
Merge pull request #30618 from nextcloud/backport/30609/stable22
[stable22] Fix RequestURL check for cli commands
2022-01-12 14:01:36 +01:00
Joas Schilling
51d4f30e9b
Merge pull request #30610 from nextcloud/backport/30588/stable22
[stable22] Fix undefined/unset scope in account properties
2022-01-12 13:50:43 +01:00
Julius Härtl
96e520584a Reset job disabling timer on adding the job again
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-01-12 10:52:57 +00:00
Carl Schwan
efe06231b5 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:20 +00:00
Nextcloud bot
1bb4b65a77
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-01-12 02:27:09 +00:00
Joas Schilling
7987158438 Fix test
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-01-11 18:44:46 +00:00
Joas Schilling
89f4880a32 Fix undefined/unset scope in account properties
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-01-11 18:44:45 +00:00
Joas Schilling
5eb1f48592
Merge pull request #30603 from nextcloud/backport/30291/stable22
[stable22] Prevent loading images that would require too much memory.
2022-01-11 19:19:15 +01:00
Joachim Bauch
d7d47169e4 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:49:15 +00:00
Louis
c8c73f3fae
Merge pull request #30591 from nextcloud/backport/30571/stable22
[stable22] fix: only use jquery once it is available
2022-01-11 14:15:32 +01:00
Azul
896c7431ee 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:30 +00:00
Louis
69e6746525
Merge pull request #30578 from nextcloud/backport/30565/stable22
[stable22] Fix fail when keys/files folder already exists
2022-01-11 10:43:47 +01:00
Vincent Petry
e455b71ecd 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 08:19:50 +00:00
Vincent Petry
0770cb82b2
Merge pull request #30581 from nextcloud/bugfix/noid/npm-ci-for-karma/stable22
[stable22] Use npm ci when running JS tests
2022-01-11 08:53:55 +01:00
Nextcloud bot
328a93f6a5
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-01-11 02:27:16 +00:00
Vincent Petry
5b35a47318
Make chokidar happy with fsevents
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-01-10 19:03:51 +01:00
Vincent Petry
730b8909c5
Recompile JS
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-01-10 17:50:42 +01:00
Vincent Petry
8210f849ba
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 17:42:19 +01:00
Vincent Petry
4f3ea77370
Update node deps for JS tests
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-01-10 17:41:51 +01:00
Vincent Petry
f7a64e990c
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 17:40:40 +01:00
Nextcloud bot
7cfb52fdf8
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-01-10 02:26:44 +00:00
MichaIng
13ce65125e
Merge pull request #30558 from nextcloud/backport/30468/stable22
[stable22] Handle LocalServerException when scanning external shares
2022-01-09 21:27:46 +01:00
Carl Schwan
54924c8dab 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:43:33 +00:00
Nextcloud bot
1cc5a3d244
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-01-09 02:26:35 +00:00
Nextcloud bot
1ef2dce3cf
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-01-08 02:26:35 +00:00
blizzz
5b892d732f
Merge pull request #30529 from nextcloud/backport/30511/stable22
[stable22]  update CRL after revocation of sharerenamer.crt
2022-01-08 00:54:57 +01:00
Pytal
c267f37ad3
Merge pull request #30526 from nextcloud/backport/30491/stable22 2022-01-07 11:24:28 -08:00
John Molakvoæ
e379532d53
Merge pull request #30519 from nextcloud/release/22.2.4 2022-01-07 15:24:36 +01:00
Vitor Mattos
d07b647b7b Update crl
Signed-off-by: Vitor Mattos <vitor@php.rio>
2022-01-07 11:25:56 +00:00
Christopher Ng
bbb78f848b Fix email verification
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-01-07 10:58:40 +00:00
Joas Schilling
f9c6a106f4
Merge pull request #30523 from nextcloud/backport/30492/stable22
[stable22] Fix passing on the parameter
2022-01-07 10:50:15 +01:00
Joas Schilling
22ea174f96
Fix passing on the parameter
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-01-07 09:30:26 +01:00
Joas Schilling
42f195bde9
Merge pull request #30515 from nextcloud/backport/29958/stable22
[stable22] Remove iconv from dependencies and tests
2022-01-07 08:46:42 +01:00
John Molakvoæ
adf01ab089
Merge pull request #30487 from nextcloud/backport/29780/stable22 2022-01-07 08:44:08 +01:00