Commit graph

62197 commits

Author SHA1 Message Date
Robin Appelman
9f34d176de
Merge pull request #31843 from nextcloud/dav-plugin-perf
Improve performance dav PROPFIND
2022-04-06 16:49:43 +00:00
Robin Appelman
5e69f98c16
sh
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-06 18:08:13 +02:00
Robin Appelman
ae7205f550
use existing node in SharesPlugin
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-06 15:46:50 +02:00
Vincent Petry
b88dc5ff2e
Merge pull request #28935 from cahogan/trashbin-restore
Add trashbin:restore occ command
2022-04-06 15:32:39 +02:00
Robin Appelman
151c800397
allow reusing known folder info when getting directory contents
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-06 14:40:34 +02:00
Robin Appelman
9b1abd6fac
save filesystem node in dav node
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-06 14:40:31 +02:00
Robin Appelman
ef9890fb78
Merge pull request #31844 from nextcloud/fs-home-only-setup
only setup home mount when getting home folder
2022-04-06 11:58:37 +00:00
Robin Appelman
7eca0a2553
don't force a full setup for getting storage stats
the auto-setup is good enough

Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-06 13:13:37 +02:00
Robin Appelman
791dc509d3
only setup home mount when getting home folder
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-06 13:13:32 +02:00
Carl Schwan
3b98db15e1
Merge pull request #31853 from nextcloud/automated/noid/psalm-baseline-update-1649218284
[Automated] Update psalm-baseline.xml
2022-04-06 11:46:59 +02:00
Joas Schilling
dd97809266
Merge pull request #31594 from nextcloud/fix/federated-shares-events
Log in audit log federated shares events
2022-04-06 11:16:47 +02:00
Vincent Petry
b8b4d247b4
Merge pull request #31194 from nextcloud/feat/allow-to-exclude-groups-from-password-enforcement
Allow to disable password policy enforcement for selected groups
2022-04-06 10:13:23 +02:00
nextcloud-command
d4b5b24439 Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
2022-04-06 04:11:24 +00:00
Nextcloud bot
d2289519a3
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-04-06 02:27:52 +00:00
John Molakvoæ
fde178b1be
Merge pull request #31849 from nextcloud/fix/cache-account 2022-04-05 21:38:03 +02:00
Carl Schwan
9cb992e93c Cache account information
Currently, each field of the profile settings is fetching the account
information. This patch makes it so that only the first time do a DB call
and all the later ones are cached.

Reduce by 5 queries when loading the profile setting page and I suppose
other pages are affected since loading a page generates always fetch at
least once the account information to see if the profile feature is enabled
for the user.

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-04-05 19:29:54 +02:00
Carl Schwan
a29251e02d Allow to disable password policy enforcement for selected groups
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Co-authored-by: Vincent Petry <vincent@nextcloud.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-04-05 17:04:17 +00:00
Côme Chilliet
fff26ad006
Merge pull request #31754 from nextcloud/fix/view-inconsistent-if-conditions
Fix incorrect if conditions in View
2022-04-05 18:06:42 +02:00
Simon L
1ceb6cdb38
Merge pull request #31684 from nextcloud/user-share-permissions-merge
take permissions from multiple paths into account for share permissions
2022-04-05 17:37:46 +02:00
Vincent Petry
0cdf03b733
Merge pull request #31773 from nextcloud/share-limited-owner-setup
Perform a limited filesystem setup when getting share source
2022-04-05 17:05:57 +02:00
Côme Chilliet
140624d551
composer run cs:fix
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-04-05 16:47:13 +02:00
Côme Chilliet
d36a1a7bf6 Exit early if $storage is falsy in View::getDirectoryContent
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-04-05 13:58:49 +00:00
Côme Chilliet
916fbe81c6 Fix incorrect if conditions in View
($something->getPermissions() && Constants::PERMISSION_READ) does not
  make sense as PERMISSION_READ contant is 1 this will always evaluate to
  true.
getPersmissions is returning an int which is a bitwise combination as
  documented in the interface, so it should be used with bit operators.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-04-05 13:58:49 +00:00
Vincent Petry
40f6f60232
Merge pull request #31829 from nextcloud/fix/exif-imaginary
Fix imaginary with rotated exif images
2022-04-05 15:39:16 +02:00
Vincent Petry
1fbb58bf8e
Merge pull request #31827 from nextcloud/enh/allow-long-filename-in-share-external
Set oc_share_external.name column length to 4000 to remove arbitrary …
2022-04-05 15:37:20 +02:00
Louis
a61382b577
Merge pull request #31841 from nextcloud/port-number-numeric-input
use `inputmode="numeric"` on port number
2022-04-05 13:24:50 +02:00
Louis
9c84aa5870
Merge pull request #31820 from nextcloud/fix/30002
Explicitly close div element
2022-04-05 11:35:56 +02:00
Christian Oliff
c13888a188
use inputmode="numeric" on port number
this is a UX enhancement for touchscreen devices... e.g. iPad
2022-04-05 17:59:47 +09:00
blizzz
835e28d0b2
Merge pull request #31661 from nextcloud/enh/user_ldap-add-command-to-unmap-groups
Add ldap:reset-group command to unmap groups from LDAP
2022-04-05 10:57:33 +02:00
Côme Chilliet
099b011bac
Update autoloader to include new migration
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-04-05 09:15:29 +02:00
Nextcloud bot
34c9b572eb
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2022-04-05 02:28:03 +00:00
John Molakvoæ
47cc5a9405
Merge pull request #29510 from nextcloud/backport/27378/master 2022-04-04 22:15:01 +02:00
Côme Chilliet
51405868b2
Merge pull request #31828 from nextcloud/fix/do-not-ignore-deleteGroup-result
Do not ignore return value of deleteGroup from backend
2022-04-04 22:04:20 +02:00
Robin Appelman
ccc3482468
Merge pull request #31734 from nextcloud/dav-quota-dont-query
dont re-query fileinfo when getting dav quota
2022-04-04 19:02:54 +00:00
Louis Chemineau
4763a1263f Explicitly close div element
Fix: #30002
Signed-off-by: Louis Chemineau <louis@chmn.me>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-04-04 17:52:44 +00:00
Joas Schilling
a44671d396
Merge pull request #31816 from nextcloud/bugfix/noid/deduplicate-storage-id-before-reusing
Deduplicate storage ids in list before reusing
2022-04-04 19:00:22 +02:00
Côme Chilliet
c020b01a66
Version bump
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-04-04 16:58:06 +02:00
Robin Appelman
cc5e26bb14
Merge pull request #31776 from nextcloud/storage-id-cache-bi-directional
cache storage id mapping both ways
2022-04-04 14:50:23 +00:00
Côme Chilliet
32eef3b10f
Do not ignore return value of deleteGroup from backend
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-04-04 16:40:07 +02:00
Carl Schwan
b5c9189cfa Fix imaginary with rotated exif images
Now do the operation in two steps:

1. Rotate the image according the exif data
2. Do the actual operation

This should only have a performance impact on image with exif rotation
data to do the rotation. For all the other images the autorotate steps
should be almost instant.

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-04-04 16:38:38 +02:00
Côme Chilliet
ef5ca766e9
Set oc_share_external.name column length to 4000 to remove arbitrary limitation
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-04-04 16:28:06 +02:00
Robin Appelman
d5953e5c33
cache internalpath in versions cleanup
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-04 15:40:34 +02:00
Robin Appelman
11a6887c7d
ensure user folder is created in ApiTest
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-04 15:40:31 +02:00
Robin Appelman
d84f9fa9bb
rename cached fileinfo on rename
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-04 15:40:28 +02:00
Robin Appelman
754603a04e
dont needlessly resolve path when getting internalPath/storage from Node
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-04 15:40:24 +02:00
Robin Appelman
8b12c75ca2
don't do a full setup for findByStorageId
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-04 15:40:20 +02:00
Robin Appelman
44a8ebdc1f
optimize getById on LazyUserFolder to not require a full fs setup
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-04 15:40:16 +02:00
Robin Appelman
700444e218
split out some path manipulation logic
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-04 15:40:12 +02:00
Robin Appelman
99ac46d8f5
allow getting mounts by providers
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-04 14:57:56 +02:00
Robin Appelman
74c97e2571
use UserFolder to get the share source node
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-04 14:57:53 +02:00