aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Cache
Commit message (Collapse)AuthorAgeFilesLines
...
* | Remove some mentions of ownCloud from our api documentationCarl Schwan2021-07-291-2/+2
|/ | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* dont apply jail search filter is on the rootRobin Appelman2021-07-261-11/+15
| | | | | | 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>
* inject SearchBuilderRobin Appelman2021-06-143-14/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* split of query building bits from searchhelperRobin Appelman2021-06-142-196/+242
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* update tests and fix some edge cases around new searchRobin Appelman2021-06-141-1/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* some cleanup and documentationRobin Appelman2021-06-141-4/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* perform file search in a single queryRobin Appelman2021-06-143-9/+11
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* use searchoperation for storage filter instead of db expressionRobin Appelman2021-06-145-29/+40
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* rework search api to allow searching on multiple caches at onceRobin Appelman2021-06-147-243/+215
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0420-28/+8
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* properly use limit and offset for search in Jail wrapperRobin Appelman2021-05-211-7/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* better cleanup of filecache when deleting an external storageRobin Appelman2021-05-191-0/+40
| | | | | | this way it can delete the cache entries even with per-user credentials Signed-off-by: Robin Appelman <robin@icewind.nl>
* Log when a storage is marked as unavailableMorris Jobke2021-03-251-0/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Catch invalid cache source storage pathJohn Molakvoæ (skjnldsv)2021-03-241-0/+4
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* only require user to be set in a query that handles tagsRobin Appelman2021-03-181-4/+8
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #26013 from nextcloud/object-store-copy-cache-idRobin Appelman2021-03-163-35/+51
|\ | | | | Return the fileid from `copyFromCache` and use it instead of doing an extra query
| * verify that cache entry is validRobin Appelman2021-03-121-0/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * also implement for FailedCache and NullCacheRobin Appelman2021-03-121-0/+5
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * add ICopyFromCache trait to expose existing implementationRobin Appelman2021-03-122-35/+43
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #25136 from nextcloud/cachejail-search-filterVincent Petry2021-03-153-17/+103
|\ \ | |/ |/| do cachejail search filtering in sql
| * adjust testsRobin Appelman2021-01-261-1/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * fix search in nested jailsRobin Appelman2021-01-261-19/+35
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * fix cachjail searching for rootRobin Appelman2021-01-262-3/+17
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * do cachejail search filtering in sqlRobin Appelman2021-01-263-4/+60
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #25659 from nextcloud/smb-getmetadata-catchRoeland Jago Douma2021-03-051-3/+3
|\ \ | | | | | | catch notfound and forbidden exception in smb::getmetadata
| * | catch notfound and forbidden exception in smb::getmetadataRobin Appelman2021-03-041-3/+3
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Remove RedundantcastsRoeland Jago Douma2021-03-041-1/+1
|/ / | | | | | | | | | | For #25839 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-184-4/+4
| | | | | | | | | | | | | | | | | | | | 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>
* | move AbstractCacheEvent into OCPRobin Appelman2021-02-151-93/+0
|/ | | | | | otherwise we have concrete cache events in OCP extending non OCP classes Signed-off-by: Robin Appelman <robin@icewind.nl>
* Bump doctrine/dbal from 2.12.0 to 3.0.0Christoph Wurst2021-01-082-10/+13
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* ignore files that have no read permissions during scanningRobin Appelman2021-01-061-0/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update license headersChristoph Wurst2020-12-301-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #24715 from nextcloud/bug/noid/limit-get-incomplete-to-1Roeland Jago Douma2020-12-211-1/+2
|\ | | | | Limit getIncomplete query to one row
| * Limit getIncomplete query to one rowDaniel Kesselberg2020-12-151-1/+2
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Update all license headers for Nextcloud 21Christoph Wurst2020-12-1611-10/+14
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* code style and dispatchTypedRobin Appelman2020-12-021-2/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* rename cache event to follow new naming standardsRobin Appelman2020-11-261-8/+22
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* extend cache eventsRobin Appelman2020-11-263-5/+27
| | | | | | | | - adds cache remove event - expose storage id in event - emit events during cache move Signed-off-by: Robin Appelman <robin@icewind.nl>
* Empty string is returned as null, but empty string in file cache is the root ↵Joas Schilling2020-11-101-1/+5
| | | | | | and exists Signed-off-by: Joas Schilling <coding@schilljs.com>
* Don't leave cursors open when tests failJoas Schilling2020-11-093-13/+62
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use query builder instead of OC_DB in OC\Files\*Joas Schilling2020-11-092-15/+37
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use Query builder functionJoas Schilling2020-11-061-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix order of GREATEST for OracleJoas Schilling2020-11-061-3/+3
| | | | | | | | | As per https://docs.oracle.com/cd/B19306_01/server.102/b14200/functions060.htm Oracle uses the first value to cast the rest or the values. So when the first value is a plain int, instead of doing the math, it will cast the expression to int and continue with a potential 0. Signed-off-by: Joas Schilling <coding@schilljs.com>
* The file cache entry is array accessibleChristoph Wurst2020-10-131-1/+1
| | | | | | … so let's make this part of our API. We use it as array already. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #22867 from nextcloud/shared-storage-init-lessRoeland Jago Douma2020-09-171-0/+53
|\ | | | | Shared storage optimizations
| * optimize View::getPath if we already know the storage idRobin Appelman2020-09-161-3/+0
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * disable update checking for shared storagesRobin Appelman2020-09-151-0/+56
| | | | | | | | | | | | update checking is already handled by the share source Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Remove @suppress SqlInjectionCheckerMorris Jobke2020-09-162-5/+0
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-242-2/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Make Cache::removeChildren non recursiveRobin Appelman2020-08-202-15/+38
| | | | | | | | | | | | Currently the "add new files during scanning" call stack is smaller than the "remove deleted files during scanning" call stack. This can lead to the scanner adding folders in the folder tree that are to deep to be removed. This changes the `removeChildren` logic to be non recursive so there is no limit to the depth of the folder tree during removal Signed-off-by: Robin Appelman <robin@icewind.nl>