John Molakvoæ
1f92440b79
Fix mexitek/phpcolors
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2 years ago
Joas Schilling
d2633c3ad6
Fix older migrations to the version pattern
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
5cacc594a0
Add missing index
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Robin Appelman
7a6c724a81
Use a lazy user for the file owner when listing a directory
Only getUID and getDisplayName are called on the file owner objects anyway
and we can get this information often without DB request
Signed-off-by: Robin Appelman <robin@icewind.nl>
2 years ago
Carl Schwan
4333c215cb
Cache display name
This should saves some query in the share backend when displaying the
owner and it's not important if the display name is 10 minutes outdated
as it is very rare that this gets changed.
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2 years ago
John Molakvoæ
48381b8913
Ship mexitek/phpcolors
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2 years ago
Carl Schwan
1c7ecfc544
Fix an issue with the search backend update
And update autoloader
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2 years ago
Carl Schwan
7817845538
Add a metadata service to store file metadata
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2 years ago
Carl Schwan
69b36fc2c5
Don't inject Bruteforce capability info in the webui
This capability do DB access and as far I know is not used by the webui.
This remove one DB query for each page load.
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2 years ago
Julius Härtl
9b408d556d
Adapt LockScope to LockContext rename
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2 years ago
Robin Appelman
1537c3d23b
record backtrace when profiling db requests
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
Robin Appelman
700444e218
split out some path manipulation logic
Signed-off-by: Robin Appelman <robin@icewind.nl>
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
Julius Härtl
40f1ad60c2
Add public API for owner based locking
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2 years ago
Côme Chilliet
d84e87eab9
Build autoloader with new composer version
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years ago
Louis Chemineau
c5722869be
Add oauth2_clients migration for Owncloud
Signed-off-by: Louis Chemineau <louis@chmn.me>
2 years ago
Robin Appelman
6b085b6fd1
add logic to perform a full filesystem setup when needed
Signed-off-by: Robin Appelman <robin@icewind.nl>
2 years ago
Joas Schilling
3b24a4f217
Fix autoloader
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Vincent Petry
9b6a1cc8ae
Send images to imaginary docker to generate previews
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Co-Authored-by: Vincent Petry <vincent@nextcloud.com>
3 years ago
Côme Chilliet
1973b2fb75
Fix autoloader and phpdoc for new class
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years ago
Robin Appelman
07a7dcb824
move user mountpoint setup to setupmanager
Signed-off-by: Robin Appelman <robin@icewind.nl>
2 years ago
Robin Appelman
1c468129af
adjust tests to new fs setup
Signed-off-by: Robin Appelman <robin@icewind.nl>
2 years ago
Robin Appelman
5c0fe93498
move teardown logic to SetupManager
Signed-off-by: Robin Appelman <robin@icewind.nl>
2 years ago
Joas Schilling
67452b94ca
Update autoloader
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Robin Appelman
8b7c8447a0
move root mount setup to mountproviders
Signed-off-by: Robin Appelman <robin@icewind.nl>
2 years ago
Robin Appelman
cfb7923e08
store mountprovider for each mount in the mounts table
this enabled more fine grained filesystem setup
Signed-off-by: Robin Appelman <robin@icewind.nl>
2 years ago
Côme Chilliet
09cf851979
Update autoload
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years ago
Christoph Wurst
cb252c5591
Add Transactional trait for atomic DB operations
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2 years ago
Christopher Ng
e3244361ba
Allow registration of migrators
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2 years ago
Joas Schilling
b765f79368
Allow apps to specify if their background job can be delayed
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Christoph Wurst
2c356d0852
Add a Talk API for OCP
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2 years ago
Joas Schilling
fcb3e9a071
Add a primary key to ratelimit_entries table
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Vitor Mattos
ab630f2cab
Fix conflict
Signed-off-by: Vitor Mattos <vitor@php.rio>
2 years ago
Vitor Mattos
b845042a67
Update composer autoload and change string to constant
Signed-off-by: Vitor Mattos <vitor@php.rio>
2 years ago
Julius Härtl
99b2cf8339
Add hashed attribute column for indexed job existence check
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2 years ago
Carl Schwan
aeecb72e96
Fix a few psalm issues and moved back to psalm/phar 4.18
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2 years ago
Carl Schwan
47c9c34cca
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 ago
Jonas Meurer
491bd6260c
Sort app scripts topologically by its dependencies
Implement a proper topological sorting algorithm. Based on the
implementation by https://github.com/marcj/topsort.php
Logs an error in case a circular dependency is detected.
Fixes: #30278
Signed-off-by: Jonas Meurer <jonas@freesources.org>
2 years ago
Christopher Ng
c85f78db69
Migrate profile_config id column to bigint
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2 years ago
Joas Schilling
99006be126
Lowercase all core=>email values
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Christopher Ng
e224401a62
Fix relation "user_id" already exists migration error
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2 years ago
Joas Schilling
c0ba89ecc9
Remove default token which is deprecated since Nextcloud 13
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Vincent Petry
c92a0e4152
Normalize directory entries in Encoding wrapper
Directory entry file names are now normalized in getMetaData(),
getDirectoryContents() and opendir().
This makes the scanner work properly as it assumes pre-normalized names.
In case the names were not normalized, the scanner will now skip the
entries and display a warning when applicable.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2 years ago
Joas Schilling
c42f5bc5f6
Add an OCP for trusted domain helper
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Roeland Jago Douma
8bc25e3324
Move preview provider registration to bootstrap
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
3 years ago
Joas Schilling
3ce3c0f117
Add an OCS endpoint for the hovercard contact actions
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Christopher Ng
309354852f
Profile backend
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2 years ago
Carl Schwan
2cb48f484b
Add an API to set and rollback the user status
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2 years ago
Anna Larch
0401d6dc0f
Add create method to extended calendar implementation
Signed-off-by: Anna Larch <anna@nextcloud.com>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2 years ago