Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-07-27Fix typos in lib/private subdirectoryluz paz
Found via `codespell -q 3 -S l10n -L jus ./lib/private` Signed-off-by: luz paz <luzpaz@github.com>
2022-04-26Migrate more classes of lib/private to LoggerInterfaceCôme Chilliet
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-04-25Merge pull request #32082 from nextcloud/directory-content-lazy-ownerVincent Petry
use a lazy user for the file owner when listing a directory
2022-04-22Use a lazy user for the file owner when listing a directorydirectory-content-lazy-ownerRobin Appelman
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>
2022-04-22optimize adding submount info to directory contentdirectory-listing-optimize-add-submountRobin Appelman
no need to loop when we can do a hashtable lookup Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-06shRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-06allow reusing known folder info when getting directory contentsRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-05composer run cs:fixCôme Chilliet
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-04-05Exit early if $storage is falsy in View::getDirectoryContentCôme Chilliet
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-04-05Fix incorrect if conditions in ViewCôme Chilliet
($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-03-31Add dav plugin to trigger recalculating of checksumsbackport/27378/masterRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-03-04type fixesfs-setup-managerRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-03-04move teardown logic to SetupManagerRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-01-17Merge pull request #29866 from nextcloud/isset-sizeVincent Petry
Check if size value is set
2022-01-13Check style updateCarl Schwan
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-01-12Fix a few psalm issues and moved back to psalm/phar 4.18Carl Schwan
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2021-11-24Typoacsfer
2021-11-23Check if size value is setacsfer
Using `isset()` as it does not return true for array keys that correspond to a `null` value, while `array_key_exists()` does. Fix #29865
2021-11-04Fix psalmJohn Molakvoæ
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2021-11-01Revert "add dav plugin to trigger recalculating of checksums"John Molakvoæ
2021-08-23Add dav plugin to trigger recalculating of checksumsRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-06-08Merge pull request #26494 from rigrig/fix-php8-deprecationsMorris Jobke
Fix some php 8 warnings
2021-06-04Update php licensesJohn Molakvoæ (skjnldsv)
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-05-29Check whether output buffering is active before turning it offRichard de Boer
Before we just turned it off and @suppressed the error if ob was not active. In PHP 8 this error is no longer suppressed, so try to not cause it at all. Signed-off-by: Richard de Boer <git@tubul.net>
2021-05-21Drop \OCP\UserChristoph Wurst
Inlines and remaining usages and drops the deprecated public API. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-03-10reuse usermanager instance when processing search resultsRobin Appelman
saves some time when processing large search results Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-02-26Properly end iterating over the file once the target has been reachedJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-12-16Update all license headers for Nextcloud 21Christoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-11-07Unlock when promoting to exclusive lock failsAshod Nakashian
In certain cases changeLock to EXCLUSIVE fails and throws LockedException. This leaves the file locked as SHARED in file_put_contents, which prevents retrying (because on second call file_put_contents takes another SHARED lock on the same file, and changeLock doesn't allow more than a single SHARED lock to promote to EXCLUSIVE). To avoid this case, we catch the LockedException and unlock before re-throwing. Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2020-09-16optimize View::getPath if we already know the storage idRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-04-29Update license headers for 19Christoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-15Update View.phpScott Dutton
2020-04-12Increase max readScott Dutton
8kb is very low, especially given this will be local files Signed-off-by: Scott Dutton <scott@exussum.co.uk>
2020-04-10Format control structures, classes, methods and functionChristoph Wurst
To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-10Use elseif instead of else ifChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-09Remove spaces after method or function callChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-09Unify function spacing to PSR2 recommendationChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-03-31Update the license headers for Nextcloud 19Christoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-03-26Use the short array syntax, everywhereChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-03-16Actually check if the owner is not nullRoeland Jago Douma
Else this can error out on storages that do not have an owner (e.g. groupfolders). Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-03-02pass the existing locks info when making locked exception with absolute pathsRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-02-12Don't create invalid usersJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-12-05Update license headersChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-11-28Properly anotate LockedException in files node apiJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-11-22Some php-cs fixesRoeland Jago Douma
* Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-06-25Merge pull request #15832 from ↵Roeland Jago Douma
nextcloud/bugfix/noid/fulltext-search-groupfolders Fix full text search for groupfolders
2019-06-17Fix full text search for groupfoldersMorris Jobke
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2019-06-06handle storage exceptions when trying to set mtimeRobin Appelman
not all storage backends can handle setting the mtime and they might not always handle that error correctly. Signed-off-by: Robin Appelman <robin@icewind.nl>
2019-05-28search files by id in shared storages lastRobin Appelman
this prevents unneeded recursion when the file is not in the share Signed-off-by: Robin Appelman <robin@icewind.nl>
2019-03-19always allow moving mountpoints inside the same mountpointRobin Appelman
even if that mountpoint isn't normally a valid target for moving mounts into Signed-off-by: Robin Appelman <robin@icewind.nl>