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-03-31cache storage id mapping both waysstorage-id-cache-bi-directionalRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
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>
2021-03-24Catch invalid cache source storage pathJohn Molakvoæ (skjnldsv)
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-03-18only require user to be set in a query that handles tagsRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-16Merge pull request #26013 from nextcloud/object-store-copy-cache-idRobin Appelman
Return the fileid from `copyFromCache` and use it instead of doing an extra query
2021-03-15Merge pull request #25136 from nextcloud/cachejail-search-filterVincent Petry
do cachejail search filtering in sql
2021-03-12verify that cache entry is validRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-12also implement for FailedCache and NullCacheRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-12add ICopyFromCache trait to expose existing implementationRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-05Merge pull request #25659 from nextcloud/smb-getmetadata-catchRoeland Jago Douma
catch notfound and forbidden exception in smb::getmetadata
2021-03-04catch notfound and forbidden exception in smb::getmetadataRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-04Remove RedundantcastsRoeland Jago Douma
For #25839 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-02-18Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]
Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-02-15move AbstractCacheEvent into OCPRobin Appelman
otherwise we have concrete cache events in OCP extending non OCP classes Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-01-26adjust testsRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-01-26fix search in nested jailsRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-01-26fix cachjail searching for rootRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-01-26do cachejail search filtering in sqlRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-01-08Bump doctrine/dbal from 2.12.0 to 3.0.0Christoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>