Christopher Ng
8aa9ea7402
Test migration of account information
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2 years ago
John Molakvoæ
fde178b1be
Merge pull request #31849 from nextcloud/fix/cache-account
2 years ago
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>
2 years ago
Carl Schwan
ddc739b5ac
Retrieve user status only once when displaying page
We don't need to inject it in the template if the data is already
available in the initial state. This is also a bit cleaner.
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2 years ago
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>
2 years ago
Côme Chilliet
fff26ad006
Merge pull request #31754 from nextcloud/fix/view-inconsistent-if-conditions
Fix incorrect if conditions in View
2 years ago
Simon L
1ceb6cdb38
Merge pull request #31684 from nextcloud/user-share-permissions-merge
take permissions from multiple paths into account for share permissions
2 years ago
Vincent Petry
0cdf03b733
Merge pull request #31773 from nextcloud/share-limited-owner-setup
Perform a limited filesystem setup when getting share source
2 years ago
Côme Chilliet
140624d551
composer run cs:fix
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years ago
Côme Chilliet
d36a1a7bf6
Exit early if $storage is falsy in View::getDirectoryContent
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years ago
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>
2 years ago
Vincent Petry
40f6f60232
Merge pull request #31829 from nextcloud/fix/exif-imaginary
Fix imaginary with rotated exif images
2 years ago
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 …
2 years ago
Louis
a61382b577
Merge pull request #31841 from nextcloud/port-number-numeric-input
use `inputmode="numeric"` on port number
2 years ago
Louis
9c84aa5870
Merge pull request #31820 from nextcloud/fix/30002
Explicitly close div element
2 years ago
Christian Oliff
c13888a188
use `inputmode="numeric"` on port number
this is a UX enhancement for touchscreen devices... e.g. iPad
2 years ago
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
2 years ago
Côme Chilliet
099b011bac
Update autoloader to include new migration
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years ago
Nextcloud bot
34c9b572eb
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2 years ago
John Molakvoæ
47cc5a9405
Merge pull request #29510 from nextcloud/backport/27378/master
2 years ago
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
2 years ago
Robin Appelman
ccc3482468
Merge pull request #31734 from nextcloud/dav-quota-dont-query
dont re-query fileinfo when getting dav quota
2 years ago
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>
2 years ago
Joas Schilling
a44671d396
Merge pull request #31816 from nextcloud/bugfix/noid/deduplicate-storage-id-before-reusing
Deduplicate storage ids in list before reusing
2 years ago
Robin Appelman
1537c3d23b
record backtrace when profiling db requests
Signed-off-by: Robin Appelman <robin@icewind.nl>
2 years ago
Côme Chilliet
c020b01a66
Version bump
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years ago
Robin Appelman
cc5e26bb14
Merge pull request #31776 from nextcloud/storage-id-cache-bi-directional
cache storage id mapping both ways
2 years ago
Robin Appelman
f9a5fb99fd
use the same cached propfind for free space for dav storage
Signed-off-by: Robin Appelman <robin@icewind.nl>
2 years ago
Robin Appelman
5e2dd29aaf
only request free space once for external shares
Signed-off-by: Robin Appelman <robin@icewind.nl>
2 years ago
Robin Appelman
802e59243b
use all possible permissions dav properties
Signed-off-by: Robin Appelman <robin@icewind.nl>
2 years ago
Robin Appelman
89d3cd1447
don't overwrite the etag from storage backends that already provide "good" etags
Signed-off-by: Robin Appelman <robin@icewind.nl>
2 years ago
Côme Chilliet
32eef3b10f
Do not ignore return value of deleteGroup from backend
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years ago
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>
2 years ago
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>
2 years ago
Robin Appelman
d5953e5c33
cache internalpath in versions cleanup
Signed-off-by: Robin Appelman <robin@icewind.nl>
2 years ago
Robin Appelman
11a6887c7d
ensure user folder is created in ApiTest
Signed-off-by: Robin Appelman <robin@icewind.nl>
2 years ago
Robin Appelman
d84f9fa9bb
rename cached fileinfo on rename
Signed-off-by: Robin Appelman <robin@icewind.nl>
2 years ago
Robin Appelman
754603a04e
dont needlessly resolve path when getting internalPath/storage from Node
Signed-off-by: Robin Appelman <robin@icewind.nl>
2 years ago
Robin Appelman
8b12c75ca2
don't do a full setup for `findByStorageId`
Signed-off-by: Robin Appelman <robin@icewind.nl>
2 years ago
Robin Appelman
44a8ebdc1f
optimize getById on LazyUserFolder to not require a full fs setup
Signed-off-by: Robin Appelman <robin@icewind.nl>
2 years ago
Robin Appelman
700444e218
split out some path manipulation logic
Signed-off-by: Robin Appelman <robin@icewind.nl>
2 years ago
Robin Appelman
99ac46d8f5
allow getting mounts by providers
Signed-off-by: Robin Appelman <robin@icewind.nl>
2 years ago
Robin Appelman
74c97e2571
use UserFolder to get the share source node
Signed-off-by: Robin Appelman <robin@icewind.nl>
2 years ago
Carl Schwan
57ecf55e0f
Merge pull request #31811 from nextcloud/dependabot/composer/guzzlehttp/psr7-1.8.5
Bump guzzlehttp/psr7 from 1.8.3 to 1.8.5
2 years ago
Carl Schwan
135bdb3d58
Merge pull request #30823 from nextcloud/work/profiler
Built-in profiler
This adds the required API for collecting information about requests. This information
can then be displayed with the new 'profiler' app.
2 years ago
Christoph Wurst
498d3aea06
Merge pull request #31687 from nextcloud/enhancement/passwordless-app-passwords
Allow app passwords without login password for occ user:add-app-password
2 years ago
Louis
43220c6393
Merge pull request #31800 from nextcloud/dependabot/npm_and_yarn/puppeteer-13.5.2
Bump puppeteer from 13.5.1 to 13.5.2
2 years ago
Carl Schwan
b4d7a5cd20
Bump guzzlehttp/psr7 from 1.8.3 to 1.8.5
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2 years ago
Carl Schwan
7d272c54d0
Add a built-in profiler inside Nextcloud
The webui is provided by a seperate application named profiler
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2 years ago
Louis
fa77882e34
Merge pull request #31798 from nextcloud/dependabot/npm_and_yarn/testing-library/user-event-14.0.4
Bump @testing-library/user-event from 13.5.0 to 14.0.4
2 years ago