]> source.dussan.org Git - nextcloud-server.git/log
nextcloud-server.git
3 years agoremoves PagedResults adapter for PHP < 7.3 26774/head
Arthur Schiwon [Mon, 26 Apr 2021 16:04:46 +0000 (18:04 +0200)]
removes PagedResults adapter for PHP < 7.3

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
3 years agoMerge pull request #26763 from nextcloud/enh/federation/improve_permissions
Roeland Jago Douma [Mon, 26 Apr 2021 15:23:12 +0000 (17:23 +0200)]
Merge pull request #26763 from nextcloud/enh/federation/improve_permissions

Improve federated permission handling

3 years agoMerge pull request #26762 from nextcloud/bugfix/noid/respect-the-error-level-on-logging
Joas Schilling [Mon, 26 Apr 2021 15:10:52 +0000 (17:10 +0200)]
Merge pull request #26762 from nextcloud/bugfix/noid/respect-the-error-level-on-logging

Respect the error level when logging

3 years agoLog deprecation only as debug 26762/head
Joas Schilling [Mon, 26 Apr 2021 14:19:03 +0000 (16:19 +0200)]
Log deprecation only as debug

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoImprove federated permission handling 26763/head
Roeland Jago Douma [Mon, 26 Apr 2021 12:15:00 +0000 (14:15 +0200)]
Improve federated permission handling

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
3 years agoRespect the error level when logging
Joas Schilling [Mon, 26 Apr 2021 12:18:18 +0000 (14:18 +0200)]
Respect the error level when logging

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoMerge pull request #26259 from nextcloud/feature/noid/validate-website-to-be-valid
Joas Schilling [Mon, 26 Apr 2021 11:56:01 +0000 (13:56 +0200)]
Merge pull request #26259 from nextcloud/feature/noid/validate-website-to-be-valid

Validate the website field input to be a valid URL

3 years agoMerge pull request #26747 from nextcloud/php8-libxml
Lukas Reschke [Mon, 26 Apr 2021 10:44:38 +0000 (12:44 +0200)]
Merge pull request #26747 from nextcloud/php8-libxml

Fix installer deprecation warnings for PHP 8

3 years agoMerge pull request #26755 from yan12125/bugfix/yan12125/caldav-truncation
Christoph Wurst [Mon, 26 Apr 2021 09:56:26 +0000 (11:56 +0200)]
Merge pull request #26755 from yan12125/bugfix/yan12125/caldav-truncation

Correctly truncate multibyte strings to fit into the database

3 years agoCorrectly truncate multibyte strings to fit into the database 26755/head
Chih-Hsuan Yen [Mon, 26 Apr 2021 08:05:50 +0000 (16:05 +0800)]
Correctly truncate multibyte strings to fit into the database

Closes: #26174
Signed-off-by: Chih-Hsuan Yen <yan12125@gmail.com>
3 years agoMerge pull request #26721 from nextcloud/fix/noid/final-private
Roeland Jago Douma [Mon, 26 Apr 2021 07:04:18 +0000 (09:04 +0200)]
Merge pull request #26721 from nextcloud/fix/noid/final-private

private cannot be final

3 years agoMerge pull request #26750 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
Roeland Jago Douma [Mon, 26 Apr 2021 06:43:58 +0000 (08:43 +0200)]
Merge pull request #26750 from nextcloud-pr-bot/automated/noid/psalm-baseline-update

[Automated] Update psalm-baseline.xml

3 years agoUpdate psalm baseline 26750/head
Nextcloud-PR-Bot [Mon, 26 Apr 2021 04:13:05 +0000 (04:13 +0000)]
Update psalm baseline

Signed-off-by: GitHub <noreply@github.com>
3 years ago[tx-robot] updated from transifex
Nextcloud bot [Mon, 26 Apr 2021 02:24:39 +0000 (02:24 +0000)]
[tx-robot] updated from transifex

3 years agoMerge pull request #26749 from nextcloud/dependabot/composer/vimeo/psalm-4.7.1
dependabot-preview[bot] [Mon, 26 Apr 2021 01:47:41 +0000 (01:47 +0000)]
Merge pull request #26749 from nextcloud/dependabot/composer/vimeo/psalm-4.7.1

3 years agoBump vimeo/psalm from 4.7.0 to 4.7.1 26749/head
dependabot-preview[bot] [Mon, 26 Apr 2021 01:17:16 +0000 (01:17 +0000)]
Bump vimeo/psalm from 4.7.0 to 4.7.1

Bumps [vimeo/psalm](https://github.com/vimeo/psalm) from 4.7.0 to 4.7.1.
- [Release notes](https://github.com/vimeo/psalm/releases)
- [Commits](https://github.com/vimeo/psalm/compare/4.7.0...4.7.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
3 years agoPHP 8+ deprecates openssl_free_key 26747/head
acsfer [Sun, 25 Apr 2021 11:50:23 +0000 (13:50 +0200)]
PHP 8+ deprecates openssl_free_key

3 years agoOnly use libxml_disable_entity_loader on PHP<8
acsfer [Sun, 25 Apr 2021 11:45:14 +0000 (13:45 +0200)]
Only use libxml_disable_entity_loader on PHP<8

3 years ago[tx-robot] updated from transifex
Nextcloud bot [Sun, 25 Apr 2021 02:24:52 +0000 (02:24 +0000)]
[tx-robot] updated from transifex

3 years ago[tx-robot] updated from transifex
Nextcloud bot [Sat, 24 Apr 2021 02:26:38 +0000 (02:26 +0000)]
[tx-robot] updated from transifex

3 years agoMerge pull request #25417 from nextcloud/fix-account-data-visibility-after-disabling...
Daniel Calviño Sánchez [Fri, 23 Apr 2021 14:48:36 +0000 (16:48 +0200)]
Merge pull request #25417 from nextcloud/fix-account-data-visibility-after-disabling-public-addressbook-upload

Fix account data visibility after disabling public addressbook upload

3 years agoMerge pull request #26719 from nextcloud/chore/dav-cleanup-query-usage
Joas Schilling [Fri, 23 Apr 2021 13:38:09 +0000 (15:38 +0200)]
Merge pull request #26719 from nextcloud/chore/dav-cleanup-query-usage

Clean up DB code in the CalDAV backend

3 years agoClose open cursors 26719/head
Christoph Wurst [Fri, 23 Apr 2021 09:47:39 +0000 (11:47 +0200)]
Close open cursors

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
3 years agoprivate cannot be final 26721/head
Maxence Lange [Fri, 23 Apr 2021 12:00:10 +0000 (11:00 -0100)]
private cannot be final

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
3 years agoUse the new executeQuery and executeUpdate methods
Christoph Wurst [Fri, 23 Apr 2021 09:43:16 +0000 (11:43 +0200)]
Use the new executeQuery and executeUpdate methods

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
3 years agoDrop default fetch mode parameter
Christoph Wurst [Fri, 23 Apr 2021 09:37:22 +0000 (11:37 +0200)]
Drop default fetch mode parameter

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
3 years agoMerge pull request #26717 from nextcloud/fix/copy-etag-node-not-found
Christoph Wurst [Fri, 23 Apr 2021 11:20:08 +0000 (13:20 +0200)]
Merge pull request #26717 from nextcloud/fix/copy-etag-node-not-found

Only set copy etag if the destination source can be found

3 years agoFix active scope not visible in the menu if excluded 25417/head
Daniel Calviño Sánchez [Mon, 1 Feb 2021 02:34:36 +0000 (03:34 +0100)]
Fix active scope not visible in the menu if excluded

Depending on some settings (for example, if lookup server upload is
disabled) some items can be hidden in the scope menu. However, if the
user selected an scope in the past once the settings were changed the
scope was no longer visible in the menu. Now the active scope will be
always visible in the menu, although if it is an excluded scope it will
be disabled. Selecting any other scope will then hide the excluded and
no longer active one.

When upload to the lookup server is disabled the scope menu was hidden
for display name and email in the personal information settings; now the
menu will be always shown to enable the above described behaviour.

Note that the menu will be shown even if there is a single available
scope so the user can read its description.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
3 years agoGuard against null phone number value
Daniel Calviño Sánchez [Sun, 31 Jan 2021 22:53:45 +0000 (23:53 +0100)]
Guard against null phone number value

"parsePhoneNumber()" expects a string, so a TypeError would be thrown if
the phone number value is null.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
3 years agoAdd integration tests for searching users in contacts menu
Daniel Calviño Sánchez [Sun, 31 Jan 2021 22:10:55 +0000 (23:10 +0100)]
Add integration tests for searching users in contacts menu

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
3 years agoFix deleting properties of user settings when not given explicitly
Daniel Calviño Sánchez [Sun, 31 Jan 2021 21:53:48 +0000 (22:53 +0100)]
Fix deleting properties of user settings when not given explicitly

The controller can receive an optional subset of the properties of the
user settings; values not given are set to "null" by default. However,
those null values overwrote the previously existing values, so in
practice any value not given was deleted from the user settings. Now
only non null values overwrite the previous values.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
3 years agoFix TypeError when "email" is not given in the controller request
Daniel Calviño Sánchez [Sun, 31 Jan 2021 13:08:24 +0000 (14:08 +0100)]
Fix TypeError when "email" is not given in the controller request

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
3 years agoRespect additional user settings not covered by the controller
Daniel Calviño Sánchez [Fri, 29 Jan 2021 21:11:16 +0000 (22:11 +0100)]
Respect additional user settings not covered by the controller

"AccountManager::updateUser()" wipes previous user data with whichever
user data is given (except for some adjustments, like resetting the
verified status when needed). As the controller overrode the properties
those properties would lose some of their attributes even if they are
not affected by the changes made by the controller. Now the controller
only modifies the attributes set ("value" and "scope") to prevent that.

Note that with this change the controller no longer removes the
"verified" status, but this is not a problem because, as mentioned,
"AccountManager::updateUser()" resets them when needed (for example,
when the value of the website property changes).

This change is a previous step to fix overwritting properties with null
values, and it will prevent the controller from making unexpected
changes if more attributes are added in the future.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
3 years agoAdd more unit tests for setting user settings
Daniel Calviño Sánchez [Fri, 29 Jan 2021 20:21:54 +0000 (21:21 +0100)]
Add more unit tests for setting user settings

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
3 years agoChange default test data to values less similar to empty values
Daniel Calviño Sánchez [Fri, 29 Jan 2021 19:37:14 +0000 (20:37 +0100)]
Change default test data to values less similar to empty values

Right now it makes no difference, but this should make future tests
clearer, specially in case of failure.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
3 years agoExtract default test data to a helper getter
Daniel Calviño Sánchez [Fri, 29 Jan 2021 19:34:10 +0000 (20:34 +0100)]
Extract default test data to a helper getter

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
3 years agoUse constants from interface rather than class
Daniel Calviño Sánchez [Fri, 29 Jan 2021 19:32:41 +0000 (20:32 +0100)]
Use constants from interface rather than class

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
3 years agoOnly set copy etag if the destination source can be found 26717/head
Christoph Wurst [Fri, 23 Apr 2021 08:53:24 +0000 (10:53 +0200)]
Only set copy etag if the destination source can be found

The etag is only set for files, but it's also possible that in edge
cases the copy destination node can't be found. In that case we don't
need to set any etag.

Required for #26083

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
3 years agoMerge pull request #26715 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
Roeland Jago Douma [Fri, 23 Apr 2021 06:03:54 +0000 (08:03 +0200)]
Merge pull request #26715 from nextcloud-pr-bot/automated/noid/psalm-baseline-update

[Automated] Update psalm-baseline.xml

3 years agoUpdate psalm baseline 26715/head
Nextcloud-PR-Bot [Fri, 23 Apr 2021 04:11:54 +0000 (04:11 +0000)]
Update psalm baseline

Signed-off-by: GitHub <noreply@github.com>
3 years ago[tx-robot] updated from transifex
Nextcloud bot [Fri, 23 Apr 2021 02:26:10 +0000 (02:26 +0000)]
[tx-robot] updated from transifex

3 years agoMerge pull request #26375 from nextcloud/techdebt/noid/symfony-component-translation...
Morris Jobke [Thu, 22 Apr 2021 19:20:16 +0000 (21:20 +0200)]
Merge pull request #26375 from nextcloud/techdebt/noid/symfony-component-translation-pluralization-rules-is-deprecated

"Symfony\Component\Translation\PluralizationRules" is deprecated

3 years agoMerge pull request #26627 from nextcloud/smb-341
blizzz [Thu, 22 Apr 2021 17:58:02 +0000 (19:58 +0200)]
Merge pull request #26627 from nextcloud/smb-341

update icewind/smb to 3.4.1

3 years agoMerge pull request #26700 from nextcloud/bugfix/noid/fix-oci-ci
blizzz [Thu, 22 Apr 2021 17:49:59 +0000 (19:49 +0200)]
Merge pull request #26700 from nextcloud/bugfix/noid/fix-oci-ci

FIx Oracle by testing on Ubuntu 20.04 until oci8.so is available for …

3 years agoMerge pull request #26699 from nextcloud/fix/noid/iresult-php-doc
blizzz [Thu, 22 Apr 2021 17:11:37 +0000 (19:11 +0200)]
Merge pull request #26699 from nextcloud/fix/noid/iresult-php-doc

remove undefined parameter, add description

3 years agoFIx Oracle by testing on Ubuntu 20.04 until oci8.so is available for 21.04 26700/head
Joas Schilling [Thu, 22 Apr 2021 14:57:00 +0000 (16:57 +0200)]
FIx Oracle by testing on Ubuntu 20.04 until oci8.so is available for 21.04

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoValidate the website field input to be a valid URL 26259/head
Joas Schilling [Tue, 23 Mar 2021 13:52:04 +0000 (14:52 +0100)]
Validate the website field input to be a valid URL

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoremove undefined parameter, add description 26699/head
Arthur Schiwon [Thu, 22 Apr 2021 14:23:01 +0000 (16:23 +0200)]
remove undefined parameter, add description

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
3 years agoMerge pull request #26586 from nextcloud/bugfix/noid/handle-device-login-like-an...
Joas Schilling [Thu, 22 Apr 2021 13:27:58 +0000 (15:27 +0200)]
Merge pull request #26586 from nextcloud/bugfix/noid/handle-device-login-like-an-alternative-login

Handle device login like an alternative login

3 years agoMerge pull request #26692 from nextcloud/redirect-forum
Morris Jobke [Thu, 22 Apr 2021 12:05:19 +0000 (14:05 +0200)]
Merge pull request #26692 from nextcloud/redirect-forum

Redirect users to forum for questions

3 years agoMerge pull request #25714 from nextcloud/fix/23197/explicitly_check_hex2bin_input
Morris Jobke [Thu, 22 Apr 2021 11:23:39 +0000 (13:23 +0200)]
Merge pull request #25714 from nextcloud/fix/23197/explicitly_check_hex2bin_input

Explicitly check hex2bin input

3 years agoTypo 26692/head
acsfer [Thu, 22 Apr 2021 11:15:10 +0000 (13:15 +0200)]
Typo

3 years agoRedirect users to forum for questions
acsfer [Thu, 22 Apr 2021 11:13:06 +0000 (13:13 +0200)]
Redirect users to forum for questions

Be more specific so more users will go directly to the forum instead using Github for non-bug reports.

3 years ago[tx-robot] updated from transifex
Nextcloud bot [Thu, 22 Apr 2021 02:26:21 +0000 (02:26 +0000)]
[tx-robot] updated from transifex

3 years agoMerge pull request #26609 from nextcloud/Valdnet-patch-6
Roeland Jago Douma [Wed, 21 Apr 2021 17:56:41 +0000 (19:56 +0200)]
Merge pull request #26609 from nextcloud/Valdnet-patch-6

l10n: Improve styling

3 years agoMerge pull request #23529 from Simounet/feat/23397-settings-new-user-modal
John Molakvoæ [Wed, 21 Apr 2021 14:38:46 +0000 (16:38 +0200)]
Merge pull request #23529 from Simounet/feat/23397-settings-new-user-modal

Settings: new user row replaced by a modal

3 years agoMerge pull request #26474 from nextcloud/caugner-patch-mariadb-in-mysql-support-warning
Morris Jobke [Wed, 21 Apr 2021 14:26:37 +0000 (16:26 +0200)]
Merge pull request #26474 from nextcloud/caugner-patch-mariadb-in-mysql-support-warning

Mention MariaDB in MySQL support warning

3 years agoMerge pull request #26575 from nextcloud/s3-set-mimetype
kesselb [Wed, 21 Apr 2021 14:16:10 +0000 (16:16 +0200)]
Merge pull request #26575 from nextcloud/s3-set-mimetype

set mimetype for objects uploaded to object storages

3 years agoset mimetype for objects uploaded to object storages 26575/head
Robin Appelman [Thu, 15 Apr 2021 15:14:57 +0000 (17:14 +0200)]
set mimetype for objects uploaded to object storages

Signed-off-by: Robin Appelman <robin@icewind.nl>
3 years agoSettings: new user row replaced by a modal 23529/head
Simounet [Fri, 16 Oct 2020 18:40:17 +0000 (20:40 +0200)]
Settings: new user row replaced by a modal

Signed-off-by: Simounet <contact@simounet.net>
3 years agoMerge pull request #26669 from nextcloud/nickvergessen-patch-1
Morris Jobke [Wed, 21 Apr 2021 12:07:17 +0000 (14:07 +0200)]
Merge pull request #26669 from nextcloud/nickvergessen-patch-1

Fix PHP CS

3 years agoMerge pull request #26648 from nextcloud/Valdnet-patch-7
Roeland Jago Douma [Wed, 21 Apr 2021 09:15:54 +0000 (11:15 +0200)]
Merge pull request #26648 from nextcloud/Valdnet-patch-7

l10n: Spelling unification

3 years agoMerge pull request #25991 from nextcloud/update-acceptance-tests-to-selenium3
John Molakvoæ [Wed, 21 Apr 2021 07:31:29 +0000 (09:31 +0200)]
Merge pull request #25991 from nextcloud/update-acceptance-tests-to-selenium3

3 years agoUpdate CredentialsManagerTest.php 26669/head
Joas Schilling [Tue, 20 Apr 2021 20:25:35 +0000 (22:25 +0200)]
Update CredentialsManagerTest.php

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
3 years agoMerge pull request #26673 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
Roeland Jago Douma [Wed, 21 Apr 2021 06:24:28 +0000 (08:24 +0200)]
Merge pull request #26673 from nextcloud-pr-bot/automated/noid/psalm-baseline-update

[Automated] Update psalm-baseline.xml

3 years agoUpdate psalm baseline 26673/head
Nextcloud-PR-Bot [Wed, 21 Apr 2021 04:11:37 +0000 (04:11 +0000)]
Update psalm baseline

Signed-off-by: GitHub <noreply@github.com>
3 years ago[tx-robot] updated from transifex
Nextcloud bot [Wed, 21 Apr 2021 02:25:58 +0000 (02:25 +0000)]
[tx-robot] updated from transifex

3 years agoMerge pull request #26654 from nextcloud/bugfix/noid/fix-security-credentials-manager...
Morris Jobke [Tue, 20 Apr 2021 20:03:52 +0000 (22:03 +0200)]
Merge pull request #26654 from nextcloud/bugfix/noid/fix-security-credentials-manager-test

Fix security credentials manager test

3 years agoMerge pull request #26658 from nextcloud/bugfix/noid/continue-on-denied-acls
Morris Jobke [Tue, 20 Apr 2021 19:35:19 +0000 (21:35 +0200)]
Merge pull request #26658 from nextcloud/bugfix/noid/continue-on-denied-acls

Do not stop directory listing when ACL is blocking access

3 years agoMerge pull request #26661 from nextcloud/bugfix/noid/fix-ldap-unit-test
Morris Jobke [Tue, 20 Apr 2021 19:34:21 +0000 (21:34 +0200)]
Merge pull request #26661 from nextcloud/bugfix/noid/fix-ldap-unit-test

Fix LDAP unit tests

3 years agoMerge pull request #26594 from nextcloud/enh/2fa/bootstrap
Morris Jobke [Tue, 20 Apr 2021 19:30:15 +0000 (21:30 +0200)]
Merge pull request #26594 from nextcloud/enh/2fa/bootstrap

Move 2FA registration to IBootstrap

3 years agoMerge pull request #26652 from nextcloud/bugfix/noid/fix-broken-test
Morris Jobke [Tue, 20 Apr 2021 19:28:36 +0000 (21:28 +0200)]
Merge pull request #26652 from nextcloud/bugfix/noid/fix-broken-test

Fix broken Expiration test

3 years agoMove 2fa backupscode to new registration 26594/head
Roeland Jago Douma [Fri, 16 Apr 2021 12:54:14 +0000 (14:54 +0200)]
Move 2fa backupscode to new registration

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
3 years agoMove 2FA registration to IBootstrap
Roeland Jago Douma [Fri, 16 Apr 2021 12:52:59 +0000 (14:52 +0200)]
Move 2FA registration to IBootstrap

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
3 years agoMerge pull request #26617 from nextcloud/fix/oracle-column-check-unrelated-migrations
Roeland Jago Douma [Tue, 20 Apr 2021 18:49:06 +0000 (20:49 +0200)]
Merge pull request #26617 from nextcloud/fix/oracle-column-check-unrelated-migrations

Do not check Oracle column constraints in unrelated migrations

3 years agoMerge pull request #26647 from nextcloud/bugfix/noid/empty-filename
Roeland Jago Douma [Tue, 20 Apr 2021 18:47:16 +0000 (20:47 +0200)]
Merge pull request #26647 from nextcloud/bugfix/noid/empty-filename

Fail when creating new files with an empty path

3 years agoMerge pull request #26660 from nextcloud/bugfix/noid/fix-twofactor-backupcodes-tests
Roeland Jago Douma [Tue, 20 Apr 2021 18:44:33 +0000 (20:44 +0200)]
Merge pull request #26660 from nextcloud/bugfix/noid/fix-twofactor-backupcodes-tests

Fix twofactor backup code tests

3 years agoMerge pull request #26659 from nextcloud/bugfix/noid/fix-updatenotification-test
Roeland Jago Douma [Tue, 20 Apr 2021 18:43:56 +0000 (20:43 +0200)]
Merge pull request #26659 from nextcloud/bugfix/noid/fix-updatenotification-test

Fix update notification tests

3 years agoMerge pull request #26662 from nextcloud/bugfix/noid/fix-dav-unit-tests
Roeland Jago Douma [Tue, 20 Apr 2021 18:43:24 +0000 (20:43 +0200)]
Merge pull request #26662 from nextcloud/bugfix/noid/fix-dav-unit-tests

Fix DAV unit tests

3 years agoMerge pull request #26663 from nextcloud/bugfix/noid/fix-support-test
Roeland Jago Douma [Tue, 20 Apr 2021 18:42:32 +0000 (20:42 +0200)]
Merge pull request #26663 from nextcloud/bugfix/noid/fix-support-test

Fix support tests

3 years agoFix support tests 26663/head
Joas Schilling [Tue, 20 Apr 2021 15:36:15 +0000 (17:36 +0200)]
Fix support tests

2) Test\Support\Subscription\RegistryTest::testDelegateIsHardUserLimitReachedWithoutSupportAppAndUserCount with data set #0 (35, 15, 2, false)
Cannot stub or mock class or interface "Test\Support\Subscription\UserInterface" which does not exist

3) Test\Support\Subscription\RegistryTest::testDelegateIsHardUserLimitReachedWithoutSupportAppAndUserCount with data set #1 (35, 45, 15, false)
Cannot stub or mock class or interface "Test\Support\Subscription\UserInterface" which does not exist

4) Test\Support\Subscription\RegistryTest::testDelegateIsHardUserLimitReachedWithoutSupportAppAndUserCount with data set #2 (35, 45, 5, true)
Cannot stub or mock class or interface "Test\Support\Subscription\UserInterface" which does not exist

5) Test\Support\Subscription\RegistryTest::testDelegateIsHardUserLimitReachedWithoutSupportAppAndUserCount with data set #3 (35, 45, 55, false)
Cannot stub or mock class or interface "Test\Support\Subscription\UserInterface" which does not exist

Had to use the Database user backend, as using multiple interfaces is deprecated:
https://github.com/sebastianbergmann/phpunit/issues/3955
> This functionality should be deprecated as "having to use it" is almost always a symptom of bad design.
> More importantly, though, the support for the creation of test doubles that implement multiple interfaces
> resulted in code that is hard to maintain.

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoFix DAV unit tests 26662/head
Joas Schilling [Tue, 20 Apr 2021 15:30:21 +0000 (17:30 +0200)]
Fix DAV unit tests

6) OCA\DAV\Tests\Unit\DAV\Controller\InvitationResponseControllerTest::testAccept
Trying to configure method "fetch" which cannot be configured because it does not exist, has not been specified, is final, or is static

7) OCA\DAV\Tests\Unit\DAV\Controller\InvitationResponseControllerTest::testAcceptSequence
Trying to configure method "fetch" which cannot be configured because it does not exist, has not been specified, is final, or is static

8) OCA\DAV\Tests\Unit\DAV\Controller\InvitationResponseControllerTest::testAcceptRecurrenceId
Trying to configure method "fetch" which cannot be configured because it does not exist, has not been specified, is final, or is static

9) OCA\DAV\Tests\Unit\DAV\Controller\InvitationResponseControllerTest::testAcceptTokenNotFound
Trying to configure method "fetch" which cannot be configured because it does not exist, has not been specified, is final, or is static

10) OCA\DAV\Tests\Unit\DAV\Controller\InvitationResponseControllerTest::testAcceptExpiredToken
Trying to configure method "fetch" which cannot be configured because it does not exist, has not been specified, is final, or is static

11) OCA\DAV\Tests\Unit\DAV\Controller\InvitationResponseControllerTest::testDecline
Trying to configure method "fetch" which cannot be configured because it does not exist, has not been specified, is final, or is static

12) OCA\DAV\Tests\Unit\DAV\Controller\InvitationResponseControllerTest::testProcessMoreOptionsResult
Trying to configure method "fetch" which cannot be configured because it does not exist, has not been specified, is final, or is static

13) OCA\DAV\Tests\unit\CalDAV\CalendarTest::testConfidentialClassification with data set #0 (3, false)
No method rule is set

14) OCA\DAV\Tests\unit\DAV\Migration\RefreshWebcalJobRegistrarTest::testRun
Trying to configure method "fetch" which cannot be configured because it does not exist, has not been specified, is final, or is static

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoFix LDAP unit tests 26661/head
Joas Schilling [Tue, 20 Apr 2021 15:21:52 +0000 (17:21 +0200)]
Fix LDAP unit tests

20) OCA\user_ldap\tests\Jobs\UpdateGroupsTest::testHandleKnownGroups
Trying to configure method "fetchAll" which cannot be configured because it does not exist, has not been specified, is final, or is static

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoFix twofactor backup code tests 26660/head
Joas Schilling [Tue, 20 Apr 2021 15:18:15 +0000 (17:18 +0200)]
Fix twofactor backup code tests

16) OCA\TwoFactorBackupCodes\Tests\Unit\Listener\ActivityPublisherTest::testHandleCodesGeneratedEvent
Method publish may not return value of type Mock_IEvent_11bf8381, its return declaration is ": void"

17) OCA\TwoFactorBackupCodes\Tests\Unit\Controller\SettingsControllerTest::testCreateCodes
Method getBackupCodesState may not return value of type string, its return declaration is ": array"

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoContinue iterating over diretory contents and just hide file if denied by acl 26658/head
Julius Härtl [Tue, 20 Apr 2021 15:03:20 +0000 (17:03 +0200)]
Continue iterating over diretory contents and just hide file if denied by acl

Signed-off-by: Julius Härtl <jus@bitgrid.net>
3 years agoFix update notification tests 26659/head
Joas Schilling [Tue, 20 Apr 2021 15:15:31 +0000 (17:15 +0200)]
Fix update notification tests

18) OCA\UpdateNotification\Tests\Notification\BackgroundJobTest::testCreateNotifications with data set #1 ('app2', '1.0.1', '1.0.0', '1.0.0', true, array('user1'), array(array('user1')))
Method notify may not return value of type Mock_INotification_2134ee38, its return declaration is ": void"

19) OCA\UpdateNotification\Tests\Notification\BackgroundJobTest::testCreateNotifications with data set #2 ('app3', '1.0.1', false, false, true, array('user2', 'user3'), array(array('user2'), array('user3')))
Method notify may not return value of type Mock_INotification_2134ee38, its return declaration is ": void"

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoFix security credentials manager test 26654/head
Joas Schilling [Tue, 20 Apr 2021 15:03:29 +0000 (17:03 +0200)]
Fix security credentials manager test

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoFix broken Expiration test 26652/head
Joas Schilling [Tue, 20 Apr 2021 14:53:00 +0000 (16:53 +0200)]
Fix broken Expiration test

15) Warning
The data provider specified for OCA\Files_Trashbin\Tests\ExpirationTest::testGetMaxAgeAsTimestamp is invalid.
PHPUnit\Util\Exception: Method timestampTestData does not exist

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoFix test by defining plurals 26375/head
Joas Schilling [Wed, 14 Apr 2021 12:46:07 +0000 (14:46 +0200)]
Fix test by defining plurals

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoOnly check translations insteda of the full file
Joas Schilling [Thu, 1 Apr 2021 09:12:00 +0000 (11:12 +0200)]
Only check translations insteda of the full file

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoFix PHP CS
Joas Schilling [Wed, 31 Mar 2021 08:08:43 +0000 (10:08 +0200)]
Fix PHP CS

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoCorreclty use plural for share exception
Joas Schilling [Wed, 31 Mar 2021 07:56:36 +0000 (09:56 +0200)]
Correclty use plural for share exception

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoCorrectly replace all PHP placeholders with the parameters
Joas Schilling [Wed, 31 Mar 2021 07:54:23 +0000 (09:54 +0200)]
Correctly replace all PHP placeholders with the parameters

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoFix languages that miss a string in the translation
Joas Schilling [Tue, 30 Mar 2021 19:04:41 +0000 (21:04 +0200)]
Fix languages that miss a string in the translation

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoAdd a check for the pipe character
Joas Schilling [Tue, 30 Mar 2021 18:19:41 +0000 (20:19 +0200)]
Add a check for the pipe character

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years ago"Symfony\Component\Translation\PluralizationRules" is deprecated
Joas Schilling [Tue, 30 Mar 2021 18:09:42 +0000 (20:09 +0200)]
"Symfony\Component\Translation\PluralizationRules" is deprecated

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoMerge pull request #26550 from nextcloud/fix/noid/prefer-cloudshare-over-mail-take2
Morris Jobke [Tue, 20 Apr 2021 12:26:14 +0000 (14:26 +0200)]
Merge pull request #26550 from nextcloud/fix/noid/prefer-cloudshare-over-mail-take2

hide mail share if a cloud share is possible – backend only solution

3 years agosave a whitespace today 26550/head
blizzz [Thu, 15 Apr 2021 10:45:40 +0000 (12:45 +0200)]
save a whitespace today

Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
3 years agoignore mail shares of related remote share results
Arthur Schiwon [Tue, 13 Apr 2021 20:49:42 +0000 (22:49 +0200)]
ignore mail shares of related remote share results

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
3 years agoMerge pull request #26548 from nextcloud/design/files-accessibility
Jan C. Borchardt [Tue, 20 Apr 2021 11:51:40 +0000 (13:51 +0200)]
Merge pull request #26548 from nextcloud/design/files-accessibility

Files & Core accessibility fixes