aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Files
Commit message (Collapse)AuthorAgeFilesLines
* fix(files): Check if the target path is a descendant of the shared folder pathbackport/47756/stable29Git'Fellow2024-09-061-1/+9
| | | | | | | | | | | | | | | | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> fix: tests Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> fix: fix tests Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> fix: add tests Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> fix: tests
* fix(files): Create non-existent parents of mountpointsprovokateurin2024-09-041-0/+31
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix: `OCP\Files\Node\Folder::search` was not setting the ownerFerdinand Thiessen2024-07-301-3/+11
| | | | | | The owner was not set on the file info causing e.g. webdav searches to never return the known owner. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* test: add test for jail watcherRobin Appelman2024-04-091-0/+30
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-043-3/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #40131 from summersab/refactor/OC-Server-getShareManagerJohn Molakvoæ2024-03-151-1/+2
|\
| * Merge branch 'master' into refactor/OC-Server-getShareManagerJohn Molakvoæ2024-03-1531-176/+1083
| |\ | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| * | Refactor `OC\Server::getShareManager`Andrew Summers2023-08-291-3/+4
| | | | | | | | | | | | Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
* | | Refactor `OC\Server::getLockingProvider`Andrew Summers2024-03-151-3/+3
| |/ |/| | | | | Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
* | refactor(mimeloader): modernize MimeTypeLoaderThomas Citharel2024-03-141-6/+5
| | | | | | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | feat(files): copy live photosMaxence Lange2024-03-081-3/+6
| | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* | fix: clearify logic around getMountsForFileId filteringRobin Appelman2024-03-061-11/+11
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #43471 from nextcloud/cache-path-by-idRobin Appelman2024-03-056-45/+92
|\ \ | | | | | | Cache path by id
| * | perf: cache path by id to speedup getting nodes by idRobin Appelman2024-03-046-45/+92
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | test: Additional tests for issue #35776Dariusz Olszewski2024-03-041-0/+146
|/ / | | | | | | Signed-off-by: Dariusz Olszewski <starypatyk@users.noreply.github.com>
* | fix: Enforce forbidden filename characters on backendFerdinand Thiessen2024-02-281-3/+48
| | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | add some comments for the distributive operation and add another testRobin Appelman2024-02-161-0/+27
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | add extra flatten step to improve "or eq" -> "in" optimizationRobin Appelman2024-02-151-3/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | add a search query step to split IN statements that are to large for ociRobin Appelman2024-02-151-0/+44
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | optimize query pattern used by storage filterRobin Appelman2024-02-155-0/+341
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | only get the path for the users cached mount info when we use itRobin Appelman2024-02-091-3/+5
| | | | | | | | | | | | most of the time we shouldn't need it so we can save joining on the filecache Signed-off-by: Robin Appelman <robin@icewind.nl>
* | make storage directory test be a bit less strict about mtimesRobin Appelman2024-02-071-2/+3
| | | | | | | | | | | | sometimes the clock ticks over during the test Signed-off-by: Robin Appelman <robin@icewind.nl>
* | refactor(objectstorage): cleanup typesThomas Citharel2024-02-021-2/+2
| | | | | | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | add test for updating etag with unchanged mtime in child folderRobin Appelman2024-01-311-0/+25
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | add test for updating etag with unchanged mtimeRobin Appelman2024-01-311-0/+19
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix(tests): Add messages to assertions to explain what failedJoas Schilling2024-01-261-8/+8
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | chore(tests): Migrate object storage unit tests from drone to GitHub ActionsFerdinand Thiessen2024-01-261-0/+4
| | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | fix(tests): Fix deprecation errors in S3 testsFerdinand Thiessen2024-01-261-1/+2
| | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-238-24/+24
| | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* | fix(ObjectStore): Make copying behavior consistent with local storageFerdinand Thiessen2023-11-171-0/+38
| | | | | | | | | | | | Drop file permissions on copy like we do on local storage. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | optimize UserMountCache::registerStorageRobin Appelman2023-11-161-14/+18
| | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* | optimize isShared and isMountedRobin Appelman2023-11-081-4/+14
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #40499 from nextcloud/known-mtime-wrapperRobin Appelman2023-09-211-0/+70
|\ \ | | | | | | add wrapper for external storage to ensure we don't get an mtime that is lower than we know it is
| * | apply known mtime wrapper for external storagesRobin Appelman2023-09-191-1/+0
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | add wrapper to ensure we don't get an mtime that is lower than we know it isRobin Appelman2023-09-191-0/+71
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | test: add test for cache mount providerDaniel Kesselberg2023-09-201-0/+108
|/ / | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | fix: Pass parent to NonExistingFile instancesJulius Härtl2023-09-131-2/+1
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #39863 from nextcloud/sharing-mask-wrapperRobin Appelman2023-09-041-2/+3
|\ \ | | | | | | move share permission logic to storage wrapper
| * | cleanup di for share permissions wrapperRobin Appelman2023-08-161-2/+3
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #39707 from ↵Simon L2023-09-041-0/+11
|\ \ \ | | | | | | | | | | | | nextcloud/bugfix/39706/local-ext-storage-unavailable-mode
| * | | Allow ext storage Local to go unavailableVincent Petry2023-08-291-0/+11
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Whenever an external storage of type Local points at a non-existing directory, process this as a StorageNotAvailable instead of returning 404. This makes desktop clients ignore the folder instead of deleting it when it becomes unavailable. The code change was limited to external storages to avoid issues during setup and with the default home storage. Signed-off-by: Vincent Petry <pvince81@yahoo.fr>
* | | Fix sharing creation insert and getJohn Molakvoæ (skjnldsv)2023-09-021-2/+0
| | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | | update testsRobin Appelman2023-08-311-46/+10
|/ / | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | only determine quota_include_external_storage once for quota wrapperRobin Appelman2023-08-181-1/+2
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | tests: Add test for CacheEntry gettersFerdinand Thiessen2023-08-161-0/+25
| | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | Fix setting static property in tests on PHP 8.3Côme Chilliet2023-08-141-2/+2
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix!: Remove symfony EventDispatcherInterface from UserJoas Schilling2023-07-275-11/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix: Move Node HookConnecter events to IEventDispatcherJoas Schilling2023-07-271-12/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore: ugly type jugglingArthur Schiwon2023-06-211-3/+5
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* repair -1 folder sizes for object store background scanRobin Appelman2023-05-101-16/+26
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>