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-08-02Document all getIncomplete implementations as returning string|falseCôme Chilliet
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-08-01Fix dynamic property creations in test filesfix/fix-dynamic-properties-in-testsCôme Chilliet
This fixes warnings in PHP 8.2 Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
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-06-29Check whether entry is of type ICacheEntry in Cache->remove()Jonas
In some scenarios (file not in cache, but partial data of it in the object), Cache->get() might return an array, which leads to errors like "Call to a member function getId() on array". So check whether the returned entry is of type ICacheEntry before doing operations on it in Cache->remove(). Fixes: #33023 Signed-off-by: Jonas <jonas@freesources.org>
2022-06-23Search without join on filecache_extendedfix/extended-query-searchCarl Schwan
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-06-02store unencrypted size in the unencrypted_size columnunencrypted-sizeRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-05-17Files: Extend search to also cover tagsfeature/files-search-tagsMarcel Klehr
fixes #326 Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2022-04-26Migrate more classes of lib/private to LoggerInterfaceCôme Chilliet
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-04-22tell mysql to ignore the sort index for search queriesmysql-search-ignore-index-2Robin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-07Merge pull request #31713 from nextcloud/fed-performanceRobin Appelman
Federated share performance improvements
2022-04-04Merge pull request #31816 from ↵Joas Schilling
nextcloud/bugfix/noid/deduplicate-storage-id-before-reusing Deduplicate storage ids in list before reusing
2022-04-04Merge pull request #31776 from nextcloud/storage-id-cache-bi-directionalRobin Appelman
cache storage id mapping both ways
2022-04-04only request free space once for external sharesRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-04don't overwrite the etag from storage backends that already provide "good" etagsRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-04Deduplicate storage ids in list before reusingJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-03-31cache storage id mapping both waysstorage-id-cache-bi-directionalRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-03-24Adapt more code to migration to LoggerInterfaceCôme Chilliet
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-03-24Migrate from ILogger to LoggerInterface in lib/privateCôme Chilliet
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-03-18some file scanner performance improvementsRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-02-25return dummy availability if storage is not found in cacheRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-12-03Switch logical operatorsacsfer
Unless there is a good reason to keep actual ones 👀
2021-12-02background scan the source storage when a background scan on a storage jail ↵Robin Appelman
is triggered Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-11-23Fix ArrayAccess and JsonSerializable return typesCôme Chilliet
First round of modifications for PHP 8.1 Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-11-17Normalize directory entries in Encoding wrapperVincent Petry
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>
2021-11-17Move storage encoding compatibility warning logicVincent Petry
The encoding check for file names is now happening the Scanner, and an event will be emitted only if the storage doesn't contain the encoding compatibility wrapper. The event is listened to by the occ scan command to be able to display a warning in case of file name mismatches when they have NFD encoding. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-11-17Normalize file name before existence check in scannerVincent Petry
The scanner would not find a NFD-encoded file name in an existing file list that is normalized. This normalizes the file name before scanning. Fixes issues where scanning repeatedly would make NFD files flicker in and out of existence in the file cache. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-11-01properly handle cases where cache wrappers block accessRobin Appelman
`CacheWrapper::formatCacheEntry` can return false for files that should be filtered out Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-11-01Merge pull request #29281 from vijfhoek/masterJohn Molakvoæ
2021-10-28Merge pull request #29115 from ↵Carl Schwan
nextcloud/work/carl/correct-permissions-when-copying Fix permissions when copying from ObjectStorage
2021-10-28Fix permissions when copying from ObjectStorageCarl Schwan
Make sure that when a user copy a file from a directory they don't have all permissions to a directory where they have more permissions, the permissions are correctly set to the one from the parent taget folder. This was caused by the ObjectStoreStorage::copyFromStorage using the jailed storage and cache entry instead of the unjailed one like other storages (the local one). Steps to reproduce + Use object storage + Create a groupfolder with one group having full permission and another one who can just read files. + With an user who is in the second group, copy a file from the groupfolder to the home folder of this user. + The file in the home folder of the user will be read only and can't be deleted even though it is in their home folder and they are the owner. In oc_filecache, the permissions stored for this file are 1 (READ) Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2021-10-17Move query outside the loop and reduce chunk size to 1000Sijmen Schoon
This involved changing CacheQueryBuilder\whereParentIn to take a parameter name, renaming the function accordingly. Signed-off-by: Sijmen Schoon <me@sijmenschoon.nl>
2021-10-17Limit parameter count per query in Cache.removeChildrenSijmen Schoon
Signed-off-by: Sijmen Schoon <me@sijmenschoon.nl>
2021-10-15more reliable return value for Watcher::checkUpdateRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-08-26generate a better optimized query for path prefix search filtersRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-08-24Merge pull request #28476 from nextcloud/search-jail-insensitiveVincent Petry
use case insensitive like when limiting search to jail
2021-08-23use getGetUnjailedRoot to determine if jailed search needs the path filterRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-08-17use case insensitive like when limiting search to jailRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-07-29Remove some mentions of ownCloud from our api documentationCarl Schwan
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2021-07-26dont apply jail search filter is on the rootRobin Appelman
the extra '/' breaks things and the filter wouldn't do anything anyway except making the databases job harder Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-06-14inject SearchBuilderRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-06-14split of query building bits from searchhelperRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-06-14update tests and fix some edge cases around new searchRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-06-14some cleanup and documentationRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-06-14perform file search in a single queryRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-06-14use searchoperation for storage filter instead of db expressionRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-06-14rework search api to allow searching on multiple caches at onceRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-06-04Update php licensesJohn Molakvoæ (skjnldsv)
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-05-21properly use limit and offset for search in Jail wrapperRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-05-19better cleanup of filecache when deleting an external storageRobin Appelman
this way it can delete the cache entries even with per-user credentials Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-25Log when a storage is marked as unavailableMorris Jobke
Signed-off-by: Morris Jobke <hey@morrisjobke.de>