aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | make LazyFolder::get not load the real folder if we know the pathRobin Appelman2023-09-044-27/+56
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | add IFileInfo::getParentIdRobin Appelman2023-09-043-7/+19
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | make Node::getParent lazyRobin Appelman2023-09-041-1/+10
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | allow passing more info to lazy folderRobin Appelman2023-09-041-0/+18
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | Merge pull request #39863 from nextcloud/sharing-mask-wrapperRobin Appelman2023-09-045-77/+50
| |\ \ \ | | | | | | | | | | move share permission logic to storage wrapper
| | * | | cleanup di for share permissions wrapperRobin Appelman2023-08-162-79/+42
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| | * | | more share permission logic to storage wrapperRobin Appelman2023-08-144-10/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this way we only have to determine the share permissions once Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | | Merge pull request #39707 from ↵Simon L2023-09-041-0/+7
| |\ \ \ \ | | | | | | | | | | | | | | | | | | nextcloud/bugfix/39706/local-ext-storage-unavailable-mode
| | * | | | Allow ext storage Local to go unavailableVincent Petry2023-08-291-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: prevent sharing permissions on user root folderJohn Molakvoæ2023-09-011-1/+2
| | |_|/ / | |/| | | | | | | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
| * | | | Merge pull request #36068 from nextcloud/gf-encryption-fixRobin Appelman2023-09-011-29/+17
| |\ \ \ \ | | | | | | | | | | | | extend fix-key-location to handle cases from broken cross-storage moves
| | * | | | extend fix-key-location to handle cases from broken cross-storage movesRobin Appelman2023-08-311-29/+17
| | |/ / / | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * / / / fix(s3): fix handling verify_bucket_exists parameterThomas Citharel2023-08-311-1/+1
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | If 'verify_bucket_exists' is set to false in the config.php s3 configuration, it's supposed to avoid verifying that the bucket exists. However empty(falsy) will always return true, so this condition would not work. Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* / / / Refactor `OC\Server::getHTTPClientService`Andrew Summers2023-08-291-1/+1
|/ / / | | | | | | | | | Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
* | | Merge pull request #39958 from nextcloud/dav-permissions-perfJohn Molakvoæ2023-08-221-17/+5
|\ \ \
| * | | improve performance of calculating dav permissionsRobin Appelman2023-08-181-17/+5
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | only determine quota_include_external_storage once for quota wrapperRobin Appelman2023-08-182-4/+6
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | reuse dependencies from wrapped cacheRobin Appelman2023-08-181-3/+11
|/ / / | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #39481 from nextcloud/fix/transfer-ownersipJulius Härtl2023-08-171-16/+24
|\ \ \
| * | | fix: don't emit Hooks when hookpaths are emptyAnna Larch2023-08-171-16/+24
| | | | | | | | | | | | | | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* | | | fix: Prevent PHP warnings when optional CacheEntry attributes are unsetFerdinand Thiessen2023-08-162-4/+4
|/ / / | | | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | | select the fileid first when looking for incomplete filesRobin Appelman2023-08-141-5/+9
| | | | | | | | | | | | | | | | | | this seems to improve mariadbs index selection Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #39644 from nextcloud/fix/noid/copy-delete-fallback-for-filesDaniel2023-08-141-1/+1
|\ \ \ | |/ / |/| | fix: copy-and-delete fallback should use unlink
| * | fix: copy-and-delete fallback should use unlinkDaniel Kesselberg2023-07-311-1/+1
| | | | | | | | | | | | | | | | | | because rmdir does not work for files. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | | Merge pull request #39698 from joshtrichards/invalid-source-storage-path-catchJohn Molakvoæ2023-08-051-1/+1
|\ \ \
| * | | fix: simplify `sourceData` checkJohn Molakvoæ2023-08-051-1/+1
| | | | | | | | | | | | | | | | Co-authored-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| * | | Catch more invalid cache source storage pathsJosh Richards2023-08-031-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | OC\Files\Cache\Cache::get can return string|false|null, not just string|false. - nextcloud/server#26270 added handling of false, but null is needed too. - Well, or we change the default $resullt to false, but I'm not sure if that has other ramifications and the real need here is to simply catch situations where the cache source storage path is not valid for whatever reason Related: nextcloud/server#19009 Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
* | | Merge pull request #39605 from nextcloud/bugfix/noid/final-events-cleanupJoas Schilling2023-08-041-2/+4
|\ \ \ | |/ / |/| | fix!: Final round of moving to IEventDispatcher
| * | fix!: Move getEventDispatcher usage to IEventDispatcherJoas Schilling2023-07-281-2/+4
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | fix(storage): fallback to copy and unlink when rename failsDaniel Kesselberg2023-07-311-13/+6
| | | | | | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | | fix(s3): add SSE-C parameters to headObject callTobias Zimmerer2023-07-301-1/+1
| | | | | | | | | | | | Signed-off-by: Tobias Zimmerer <3228193+ir0nhide@users.noreply.github.com>
* | | expose MovableMount in public interfaceRobin Appelman2023-07-281-1/+3
|/ / | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix: Move Node HookConnecter events to IEventDispatcherJoas Schilling2023-07-271-25/+13
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #39367 from nextcloud/s3-fopen-exceptionRobin Appelman2023-07-201-1/+3
|\ \ | | | | | | handle more exceptions in AmazonS3::fopen
| * | fix SeekableHttpStream::stream_stat errors on failed openRobin Appelman2023-07-131-1/+3
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #38860 from nextcloud/scanner-change-summaryRobin Appelman2023-07-202-3/+7
|\ \ | | | | | | add summary of detected changes to files:scan output
| * | add summary of detected changes to files:scan outputRobin Appelman2023-06-162-3/+7
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #38934 from nextcloud/bugfix/noid/ssec-multipartJulius Härtl2023-07-201-5/+5
|\ \ \
| * | | fix(s3): Pass SSE-C parameters for multipart uploadJulius Härtl2023-06-211-5/+5
| | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | | fix(node): non-existing folder is not searchableArthur Schiwon2023-07-131-0/+4
| |_|/ |/| | | | | | | | | | | | | | | | | the previosuly introduced searchBySystemTag was not overwritten in NonExistingFolder and could run the inherited method. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | chore: Replace \OC::$server->query with \OCP\Server::get in /libChristoph Wurst2023-07-062-2/+2
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | fix(sse): don't update uncached filesRichard Steinmetz2023-07-041-13/+21
| | | | | | | | | | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* | | Merge pull request #37969 from nextcloud/poc/noid/systemtags-perf-tag-endpointJulius Härtl2023-06-284-32/+59
|\ \ \
| * | | fix: cominbation of small fixesArthur Schiwon2023-06-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - possible null return - parameter name mismatch in implementation - incomplete unit test Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * | | fix: include invisible tags for adminsArthur Schiwon2023-06-212-41/+36
| | | | | | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * | | feat: add searchBySystemTag as PHP APIArthur Schiwon2023-06-211-0/+4
| | | | | | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * | | fix: favorites view and universal search against tagsArthur Schiwon2023-06-211-17/+30
| | | | | | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * | | fix: change if with conditionless else to switch; and a parameter valueArthur Schiwon2023-06-212-20/+25
| | | | | | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * | | use efficient tag retrieval on DAV report requestArthur Schiwon2023-06-212-17/+27
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - uses DAV search approach against valid files joined by systemtag selector - reduced table join for tag/systemtag search - supports pagination - no changes to the output formats or similar Example request body: <?xml version="1.0"?> <oc:filter-files xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns" xmlns:ocs="http://open-collaboration-services.org/ns"> <d:prop> <d:getcontentlength/> <d:getcontenttype/> <d:getetag/> <d:getlastmodified/> <d:resourcetype/> <nc:face-detections/> <nc:file-metadata-size/> <nc:has-preview/> <nc:realpath/> <oc:favorite/> <oc:fileid/> <oc:permissions/> <nc:nbItems/> </d:prop> <oc:filter-rules> <oc:systemtag>32</oc:systemtag> </oc:filter-rules> <d:limit> <d:nresults>50</d:nresults> <nc:firstresult>0</nc:firstresult> </d:limit> </oc:filter-files> Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | Merge pull request #38858 from nextcloud/scanner-performance3Robin Appelman2023-06-262-14/+10
|\ \ \ | | | | | | | | file scanner performance improvements