]> source.dussan.org Git - nextcloud-server.git/log
nextcloud-server.git
2 years agoMerge pull request #30840 from nextcloud/releases/23.0.1 v23.0.1
John Molakvoæ [Thu, 27 Jan 2022 19:33:21 +0000 (20:33 +0100)]
Merge pull request #30840 from nextcloud/releases/23.0.1

2 years agoMerge pull request #30814 from nextcloud/backport/30508/stable23
John Molakvoæ [Thu, 27 Jan 2022 19:06:29 +0000 (20:06 +0100)]
Merge pull request #30814 from nextcloud/backport/30508/stable23

2 years agoFix psalm not running 30814/head
Carl Schwan [Thu, 6 Jan 2022 13:19:06 +0000 (14:19 +0100)]
Fix psalm not running

The issue was that we were using psalm/phar instead of vimeo/psalm. This
caused issue with the custom psalm plugin in buildd/psalm.

This is using the opportunity to also update the psalm version from 3.8
to 3.17 and the php-cs-fixer too.

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2 years agoMerge pull request #30872 from nextcloud/backport/30844/stable23
John Molakvoæ [Thu, 27 Jan 2022 09:42:51 +0000 (10:42 +0100)]
Merge pull request #30872 from nextcloud/backport/30844/stable23

2 years agoPrevent merging on EOL branches 30872/head
John Molakvoæ [Wed, 26 Jan 2022 08:38:21 +0000 (09:38 +0100)]
Prevent merging on EOL branches

Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2 years agoMerge pull request #30847 from nextcloud/backport/30846/stable23
John Molakvoæ [Wed, 26 Jan 2022 12:13:03 +0000 (13:13 +0100)]
Merge pull request #30847 from nextcloud/backport/30846/stable23

2 years agoFix php:cs 30847/head
Louis Chemineau [Wed, 26 Jan 2022 09:47:16 +0000 (10:47 +0100)]
Fix php:cs

Signed-off-by: Louis Chemineau <louis@chmn.me>
2 years ago23.0.1 Final 30840/head
John Molakvoæ [Tue, 25 Jan 2022 13:53:02 +0000 (14:53 +0100)]
23.0.1 Final

2 years agoMerge pull request #30799 from nextcloud/dependabot/composer/build/integration/stable...
John Molakvoæ [Mon, 24 Jan 2022 07:07:48 +0000 (08:07 +0100)]
Merge pull request #30799 from nextcloud/dependabot/composer/build/integration/stable23/sabre/dav-4.3.1

2 years agoMerge pull request #30740 from nextcloud/backport23
John Molakvoæ [Sat, 22 Jan 2022 18:03:33 +0000 (19:03 +0100)]
Merge pull request #30740 from nextcloud/backport23

2 years agoMerge pull request #30811 from nextcloud/backport/30795/stable23
John Molakvoæ [Sat, 22 Jan 2022 13:14:56 +0000 (14:14 +0100)]
Merge pull request #30811 from nextcloud/backport/30795/stable23

2 years agoMerge pull request #30773 from nextcloud/backport/30769/stable23
John Molakvoæ [Sat, 22 Jan 2022 09:25:50 +0000 (10:25 +0100)]
Merge pull request #30773 from nextcloud/backport/30769/stable23

2 years agoFix accessing undefined offsets 30811/head
Carl Schwan [Fri, 21 Jan 2022 12:59:10 +0000 (13:59 +0100)]
Fix accessing undefined offsets

Move this to inside the else clause of the count($matches)

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2 years agoUpdate sabre/dav requirement from 4.3.0 to 4.3.1 in /build/integration 30799/head
dependabot[bot] [Sat, 22 Jan 2022 02:10:48 +0000 (02:10 +0000)]
Update sabre/dav requirement from 4.3.0 to 4.3.1 in /build/integration

Updates the requirements on [sabre/dav](https://github.com/sabre-io/dav) to permit the latest version.
- [Release notes](https://github.com/sabre-io/dav/releases)
- [Changelog](https://github.com/sabre-io/dav/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sabre-io/dav/compare/4.3.0...4.3.1)

---
updated-dependencies:
- dependency-name: sabre/dav
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agoMerge pull request #30765 from nextcloud/release/23.0.1rc3
John Molakvoæ [Thu, 20 Jan 2022 20:37:22 +0000 (21:37 +0100)]
Merge pull request #30765 from nextcloud/release/23.0.1rc3

2 years agoMerge pull request #30782 from nextcloud/backport/29349/stable23 v23.0.1rc3
John Molakvoæ [Thu, 20 Jan 2022 20:25:58 +0000 (21:25 +0100)]
Merge pull request #30782 from nextcloud/backport/29349/stable23

2 years agoAdd test for samba kerberos sso in ci 30782/head
Robin Appelman [Thu, 20 Jan 2022 16:16:08 +0000 (17:16 +0100)]
Add test for samba kerberos sso in ci

Signed-off-by: Robin Appelman <robin@icewind.nl>
2 years agoupdate icewind/smb to 3.5.2
Robin Appelman [Thu, 20 Jan 2022 15:09:41 +0000 (16:09 +0100)]
update icewind/smb to 3.5.2

Signed-off-by: Robin Appelman <robin@icewind.nl>
2 years agoupdate to release smb lib
Robin Appelman [Thu, 4 Nov 2021 14:38:42 +0000 (15:38 +0100)]
update to release smb lib

Signed-off-by: Robin Appelman <robin@icewind.nl>
2 years agoupdate icewind/smb to 3.5.1
Robin Appelman [Thu, 4 Nov 2021 14:05:37 +0000 (15:05 +0100)]
update icewind/smb to 3.5.1

Signed-off-by: Robin Appelman <robin@icewind.nl>
2 years agodo not use deprecated query() method
Arthur Schiwon [Wed, 3 Nov 2021 12:07:00 +0000 (13:07 +0100)]
do not use deprecated query() method

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2 years agoadd changes from Sebastian/dassIT and move default_realm to backend
Arthur Schiwon [Fri, 29 Oct 2021 16:27:30 +0000 (18:27 +0200)]
add changes from Sebastian/dassIT and move default_realm to backend

- Sebastian added the switch depending on the preg_match result and with it
  the fall back to login credentials
- I turned default_realm to a backend option (was previously suggested as
  system config key)

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2 years agoadd KerberosApacheAuth support to files_external
Arthur Schiwon [Wed, 20 Oct 2021 20:39:13 +0000 (22:39 +0200)]
add KerberosApacheAuth support to files_external

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2 years agoAlways call flush() as getAllKeys() is broken 30773/head
Côme Chilliet [Thu, 20 Jan 2022 10:20:18 +0000 (11:20 +0100)]
Always call flush() as getAllKeys() is broken

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years agoMerge pull request #30728 from nextcloud/backport/30614/stable23
John Molakvoæ [Thu, 20 Jan 2022 10:12:34 +0000 (11:12 +0100)]
Merge pull request #30728 from nextcloud/backport/30614/stable23

2 years agoFix tests with email templates 30740/head
Carl Schwan [Tue, 18 Jan 2022 13:59:02 +0000 (14:59 +0100)]
Fix tests with email templates

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2 years agoMerge pull request #29798 from nextcloud/stable23-disk
John Molakvoæ [Thu, 20 Jan 2022 09:36:40 +0000 (10:36 +0100)]
Merge pull request #29798 from nextcloud/stable23-disk

2 years agoMerge pull request #30759 from nextcloud/backport/30731/stable23
John Molakvoæ [Thu, 20 Jan 2022 09:36:13 +0000 (10:36 +0100)]
Merge pull request #30759 from nextcloud/backport/30731/stable23

2 years ago23.0.1 RC3 30765/head
John Molakvoæ [Thu, 20 Jan 2022 09:16:39 +0000 (10:16 +0100)]
23.0.1 RC3

Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2 years agoLog bruteforce throttle and blocking 30759/head
Joas Schilling [Tue, 18 Jan 2022 09:10:19 +0000 (10:10 +0100)]
Log bruteforce throttle and blocking

Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years agoMerge pull request #30753 from nextcloud/backport/30738/stable23
John Molakvoæ [Wed, 19 Jan 2022 10:04:33 +0000 (11:04 +0100)]
Merge pull request #30753 from nextcloud/backport/30738/stable23

2 years agoMerge pull request #30747 from nextcloud/backport/30615/stable23
John Molakvoæ [Wed, 19 Jan 2022 09:45:33 +0000 (10:45 +0100)]
Merge pull request #30747 from nextcloud/backport/30615/stable23

2 years agoCreate block-merge-freeze.yml 30753/head
Joas Schilling [Tue, 18 Jan 2022 14:34:25 +0000 (15:34 +0100)]
Create block-merge-freeze.yml

Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2 years agoUpdate autoload and ClassLoader 30747/head
Christopher Ng [Wed, 19 Jan 2022 02:12:15 +0000 (02:12 +0000)]
Update autoload and ClassLoader

Signed-off-by: Christopher Ng <chrng8@gmail.com>
2 years agoImprove installation pages
Christopher Ng [Fri, 14 Jan 2022 19:32:10 +0000 (19:32 +0000)]
Improve installation pages

Signed-off-by: Christopher Ng <chrng8@gmail.com>
(cherry picked from commit 22768769c3f29f9952110f86a032e4bf3a4bf460)
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2 years agoMerge pull request #30734 from nextcloud/backport/30470/stable23
Carl Schwan [Tue, 18 Jan 2022 16:02:37 +0000 (17:02 +0100)]
Merge pull request #30734 from nextcloud/backport/30470/stable23

[stable23] Hash job argument

2 years ago[stable23] Increase email main buttons width for non-english languages
acsfer [Tue, 18 Jan 2022 15:01:26 +0000 (16:01 +0100)]
[stable23] Increase email main buttons width for non-english languages

Manual backport of https://github.com/nextcloud/server/pull/30653

2 years agoAdd hashed attribute column for indexed job existence check 30734/head
Julius Härtl [Mon, 3 Jan 2022 10:17:28 +0000 (11:17 +0100)]
Add hashed attribute column for indexed job existence check

Signed-off-by: Julius Härtl <jus@bitgrid.net>
2 years agoUpdate Session.php 30728/head
Marek-Wojtowicz [Tue, 11 Jan 2022 21:33:18 +0000 (22:33 +0100)]
Update Session.php

The http headers according to rfc 2616 is iso-8859-1. This patch fixes the behavior when non-ascii characters are present in the header.

Signed-off-by: Marek Wójtowicz <Marek.Wojtowicz@agh.edu.pl>
2 years agoMerge pull request #30685 from nextcloud/backport/29923/stable23
MichaIng [Mon, 17 Jan 2022 20:20:05 +0000 (21:20 +0100)]
Merge pull request #30685 from nextcloud/backport/29923/stable23

[stable23] Fix users can't login external mount user entered credentials not set

2 years agoMerge pull request #30722 from nextcloud/backport/30719/stable23
max-nextcloud [Mon, 17 Jan 2022 19:45:25 +0000 (20:45 +0100)]
Merge pull request #30722 from nextcloud/backport/30719/stable23

[stable23] Fix loading of the text app in public shared links

2 years agoFix loading of the text app in public shared links 30722/head
Carl Schwan [Mon, 17 Jan 2022 15:00:19 +0000 (16:00 +0100)]
Fix loading of the text app in public shared links

Instead of doing the centering for the entire public content, only do it
for the preview. This is more safe.

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2 years agoMerge pull request #30678 from nextcloud/release/23.0.1rc2 v23.0.1rc2
blizzz [Mon, 17 Jan 2022 11:28:47 +0000 (12:28 +0100)]
Merge pull request #30678 from nextcloud/release/23.0.1rc2

23.0.1 RC2

2 years agoMerge pull request #30684 from nextcloud/backport/30531/stable23
Carl Schwan [Mon, 17 Jan 2022 09:15:26 +0000 (10:15 +0100)]
Merge pull request #30684 from nextcloud/backport/30531/stable23

[stable23] Optimize FileSystemTags workflow for groupfolder

2 years agoMerge pull request #30688 from nextcloud/backport/30499/stable23
MichaIng [Sat, 15 Jan 2022 01:52:03 +0000 (02:52 +0100)]
Merge pull request #30688 from nextcloud/backport/30499/stable23

[stable23] Remove inefficient fed share scanner

2 years agoMerge pull request #30689 from nextcloud/backport/30645/stable23
MichaIng [Sat, 15 Jan 2022 01:50:26 +0000 (02:50 +0100)]
Merge pull request #30689 from nextcloud/backport/30645/stable23

[stable23] New Files internal link GET param to avoid opening the file

2 years agoMerge pull request #30695 from nextcloud/backport/30631/stable23
MichaIng [Sat, 15 Jan 2022 01:48:12 +0000 (02:48 +0100)]
Merge pull request #30695 from nextcloud/backport/30631/stable23

[stable23] updateEncryptedVersion: cleanup on target if cache already got renamed

2 years agoMerge pull request #30698 from nextcloud/backport/30655/stable23
MichaIng [Sat, 15 Jan 2022 01:39:47 +0000 (02:39 +0100)]
Merge pull request #30698 from nextcloud/backport/30655/stable23

[stable23] Improve layout for the public download page

2 years agoAdd non-breaking space in the file size 30698/head
Carl Schwan [Thu, 13 Jan 2022 18:29:21 +0000 (19:29 +0100)]
Add non-breaking space in the file size

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2 years agoImprove layout for the public download page
Carl Schwan [Thu, 13 Jan 2022 17:59:33 +0000 (18:59 +0100)]
Improve layout for the public download page

This centers the content inside the pages, while also not hardcoded the
size of the footer.

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2 years agoupdateEncryptedVersion: cleanup on target if cache already got renamed 30695/head
Jonas Meurer [Wed, 12 Jan 2022 14:28:34 +0000 (15:28 +0100)]
updateEncryptedVersion: cleanup on target if cache already got renamed

When moving a file to trash with encryption enabled, the cache gets
moved before the actual file. According to @icewind1991 this is in order
to not break object storage.

When moving a file from an unencrypted storage (e.g. a collectives
storage) to the encrypted trashbin storage, this causes errors, see

This commit fixes it by doing `updateEncryptedVersion()` on the target
cache entry *if* the source cache entry doesn't exist anymore, but the
corresponding target cache entry does exist already.

Fixes: #26544
Signed-off-by: Jonas Meurer <jonas@freesources.org>
2 years ago[files] new internal link GET param to avoid setting 'openfile' on redirect 30689/head
Julien Veyssier [Thu, 13 Jan 2022 12:07:52 +0000 (13:07 +0100)]
[files] new internal link GET param to avoid setting 'openfile' on redirect

Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2 years agoMerge pull request #30672 from nextcloud/backport/stable23/30597
John Molakvoæ [Fri, 14 Jan 2022 16:30:13 +0000 (17:30 +0100)]
Merge pull request #30672 from nextcloud/backport/stable23/30597

2 years agoRemove inefficient fed share scanner 30688/head
Vincent Petry [Wed, 5 Jan 2022 16:19:24 +0000 (17:19 +0100)]
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>
2 years agoMerge pull request #30674 from nextcloud/backport/30275/stable23
John Molakvoæ [Fri, 14 Jan 2022 15:27:21 +0000 (16:27 +0100)]
Merge pull request #30674 from nextcloud/backport/30275/stable23

2 years agofiles_external SMB: throw InvalidArgument when user is not set 30685/head
Anderson Luiz Alves [Fri, 3 Dec 2021 13:57:00 +0000 (10:57 -0300)]
files_external SMB: throw InvalidArgument when user is not set

Signed-off-by: Anderson Luiz Alves <alacn1@gmail.com>
2 years agoFix psalm issues 30684/head
Carl Schwan [Thu, 13 Jan 2022 11:30:27 +0000 (12:30 +0100)]
Fix psalm issues

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2 years agoAdd helper method in Wrapper
Carl Schwan [Mon, 10 Jan 2022 10:36:51 +0000 (11:36 +0100)]
Add helper method in Wrapper

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2 years agoThe storage is not static anymore
Carl Schwan [Fri, 7 Jan 2022 16:55:02 +0000 (17:55 +0100)]
The storage is not static anymore

Don't call twice $cache->getId

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2 years agoOptimize FileSystemTags workflow for groupfolder
Carl Schwan [Fri, 7 Jan 2022 13:00:48 +0000 (14:00 +0100)]
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>
2 years agoMerge pull request #30671 from nextcloud/backport/30363/stable23
Simon L [Fri, 14 Jan 2022 13:31:05 +0000 (14:31 +0100)]
Merge pull request #30671 from nextcloud/backport/30363/stable23

[stable23] improve accessibility settings on mobile

2 years ago23.0.1 RC2 30678/head
Arthur Schiwon [Fri, 14 Jan 2022 11:46:43 +0000 (12:46 +0100)]
23.0.1 RC2

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2 years agoMerge pull request #30662 from nextcloud/backport/30530/stable23
Vincent Petry [Fri, 14 Jan 2022 11:21:22 +0000 (12:21 +0100)]
Merge pull request #30662 from nextcloud/backport/30530/stable23

[stable23] Fix wrong unified search link to folder

2 years agoMerge pull request #30663 from nextcloud/backport/30568/stable23
blizzz [Fri, 14 Jan 2022 11:04:06 +0000 (12:04 +0100)]
Merge pull request #30663 from nextcloud/backport/30568/stable23

[stable23] Fix primary key change in user_ldap migration

2 years agoAdd version of disabled apps when available 30674/head
Joas Schilling [Wed, 15 Dec 2021 08:08:14 +0000 (09:08 +0100)]
Add version of disabled apps when available

Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years agoFix file picker not respecting hidden files settings 30672/head
Carl Schwan [Tue, 11 Jan 2022 14:06:54 +0000 (15:06 +0100)]
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 1fa58be1aa78ff6216b7a129925a7bb270ac9fe1)

2 years agoMerge pull request #30659 from nextcloud/backport/29622/stable23
Julius Härtl [Fri, 14 Jan 2022 09:41:46 +0000 (10:41 +0100)]
Merge pull request #30659 from nextcloud/backport/29622/stable23

2 years agoaddress 2nd review 30671/head
szaimen [Thu, 23 Dec 2021 11:24:17 +0000 (12:24 +0100)]
address 2nd review

Signed-off-by: szaimen <szaimen@e.mail.de>
2 years agoaddress review
szaimen [Tue, 21 Dec 2021 19:52:49 +0000 (20:52 +0100)]
address review

Signed-off-by: szaimen <szaimen@e.mail.de>
2 years agoimprove accessibility settings on mobile
szaimen [Tue, 21 Dec 2021 11:28:12 +0000 (12:28 +0100)]
improve accessibility settings on mobile

Signed-off-by: szaimen <szaimen@e.mail.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2 years agoMerge pull request #30643 from nextcloud/backport/30600/stable23
Carl Schwan [Fri, 14 Jan 2022 09:08:19 +0000 (10:08 +0100)]
Merge pull request #30643 from nextcloud/backport/30600/stable23

[stable23] Fix idn emails not working in shares

2 years agoRemove useless indexes with duplicated names on backup table 30663/head
Côme Chilliet [Thu, 13 Jan 2022 16:20:45 +0000 (17:20 +0100)]
Remove useless indexes with duplicated names on backup table

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years agoUpdate autoloader
Joas Schilling [Thu, 13 Jan 2022 13:22:30 +0000 (14:22 +0100)]
Update autoloader

Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years agoFix user_ldap migration for long DNs support
Côme Chilliet [Thu, 13 Jan 2022 11:20:57 +0000 (12:20 +0100)]
Fix user_ldap migration for long DNs support

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years agoMove duplicated code to a base class for group_mapping migrations
Côme Chilliet [Tue, 11 Jan 2022 15:36:27 +0000 (16:36 +0100)]
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>
2 years agoSplit dropTable and createTable in two migrations
Côme Chilliet [Tue, 11 Jan 2022 15:16:02 +0000 (16:16 +0100)]
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>
2 years agoFix primary key change in user_ldap migration
Côme Chilliet [Mon, 10 Jan 2022 11:07:41 +0000 (12:07 +0100)]
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>
2 years agoFix wrong unified search link to folder 30662/head
John Molakvoæ [Fri, 7 Jan 2022 11:28:34 +0000 (12:28 +0100)]
Fix wrong unified search link to folder

Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2 years agoImplement multibucket shift for ObjectStore 30659/head
John Molakvoæ [Wed, 10 Nov 2021 11:21:01 +0000 (12:21 +0100)]
Implement multibucket shift for ObjectStore

Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2 years agoFix idn emails not working in shares 30643/head
Carl Schwan [Wed, 12 Jan 2022 13:15:08 +0000 (14:15 +0100)]
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>
2 years agoMerge pull request #30636 from nextcloud/backport/30620/stable23
Vincent Petry [Thu, 13 Jan 2022 10:35:38 +0000 (11:35 +0100)]
Merge pull request #30636 from nextcloud/backport/30620/stable23

[stable23] Properly abort uploads

2 years agoProperly hide progress bar after error 30636/head
Vincent Petry [Wed, 12 Jan 2022 15:39:45 +0000 (16:39 +0100)]
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>
2 years agoProperly abort uploads
Vincent Petry [Wed, 12 Jan 2022 10:42:10 +0000 (11:42 +0100)]
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>
2 years agoMerge pull request #30627 from nextcloud/backport/30593/stable23
Vincent Petry [Wed, 12 Jan 2022 16:42:45 +0000 (17:42 +0100)]
Merge pull request #30627 from nextcloud/backport/30593/stable23

[stable23] Trigger "changeDirectory" event on URL change

2 years agoMerge pull request #30621 from nextcloud/backport/30358/stable23
MichaIng [Wed, 12 Jan 2022 15:01:56 +0000 (16:01 +0100)]
Merge pull request #30621 from nextcloud/backport/30358/stable23

[stable23] Reset job disabling timer on adding the job again

2 years agoTrigger "changeDirectory" even on URL change 30627/head
Vincent Petry [Tue, 11 Jan 2022 11:17:23 +0000 (12:17 +0100)]
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>
2 years agoMerge pull request #30619 from nextcloud/backport/30609/stable23
Carl Schwan [Wed, 12 Jan 2022 13:01:00 +0000 (14:01 +0100)]
Merge pull request #30619 from nextcloud/backport/30609/stable23

[stable23] Fix RequestURL check for cli commands

2 years agoMerge pull request #30611 from nextcloud/backport/30588/stable23
Joas Schilling [Wed, 12 Jan 2022 12:51:07 +0000 (13:51 +0100)]
Merge pull request #30611 from nextcloud/backport/30588/stable23

[stable23] Fix undefined/unset scope in account properties

2 years agoMerge pull request #30623 from nextcloud/backport/30485/stable23
Louis [Wed, 12 Jan 2022 12:36:38 +0000 (13:36 +0100)]
Merge pull request #30623 from nextcloud/backport/30485/stable23

[stable23] Set the file's mtime from the headers in bulk upload

2 years agoSet the file's mtime from the headers in bulk upload 30623/head
Louis Chemineau [Tue, 11 Jan 2022 09:56:49 +0000 (10:56 +0100)]
Set the file's mtime from the headers in bulk upload

Signed-off-by: Louis Chemineau <louis@chmn.me>
2 years agoReset job disabling timer on adding the job again 30621/head
Julius Härtl [Tue, 21 Dec 2021 07:05:50 +0000 (08:05 +0100)]
Reset job disabling timer on adding the job again

Signed-off-by: Julius Härtl <jus@bitgrid.net>
2 years agoMerge pull request #30602 from nextcloud/backport/30291/stable23
blizzz [Wed, 12 Jan 2022 10:16:48 +0000 (11:16 +0100)]
Merge pull request #30602 from nextcloud/backport/30291/stable23

[stable23] Prevent loading images that would require too much memory.

2 years agoFix RequestURL check for cli commands 30619/head
Carl Schwan [Tue, 11 Jan 2022 18:14:28 +0000 (19:14 +0100)]
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>
2 years agoFix test 30611/head
Joas Schilling [Tue, 11 Jan 2022 11:54:41 +0000 (12:54 +0100)]
Fix test

Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years agoFix undefined/unset scope in account properties
Joas Schilling [Tue, 11 Jan 2022 09:15:06 +0000 (10:15 +0100)]
Fix undefined/unset scope in account properties

Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years agoPrevent loading images that would require too much memory. 30602/head
Joachim Bauch [Thu, 16 Dec 2021 08:17:11 +0000 (09:17 +0100)]
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>
2 years agoMerge pull request #30594 from nextcloud/backport/30533/stable23
MichaIng [Tue, 11 Jan 2022 14:35:18 +0000 (15:35 +0100)]
Merge pull request #30594 from nextcloud/backport/30533/stable23

[stable23] Avoid zero division in setup checks

2 years agoMerge pull request #30592 from nextcloud/backport/30571/stable23
Louis [Tue, 11 Jan 2022 13:18:28 +0000 (14:18 +0100)]
Merge pull request #30592 from nextcloud/backport/30571/stable23

[stable23] fix: only use jquery once it is available

2 years agoAvoid zero division in setup checks 30594/head
MichaIng [Fri, 7 Jan 2022 18:43:07 +0000 (19:43 +0100)]
Avoid zero division in setup checks

Fixes: https://github.com/nextcloud/server/issues/30532
Signed-off-by: MichaIng <micha@dietpi.com>
2 years agofix: only use jquery once it is available 30592/head
Azul [Mon, 10 Jan 2022 13:54:29 +0000 (14:54 +0100)]
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>