aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files
Commit message (Collapse)AuthorAgeFilesLines
...
| * cleanup di for share permissions wrapperRobin Appelman2023-09-042-79/+42
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * more share permission logic to storage wrapperRobin Appelman2023-09-044-10/+20
| | | | | | | | | | | | this way we only have to determine the share permissions once Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #40227 from nextcloud/backport/40195/stable27Arthur Schiwon2023-09-051-1/+2
|\ \ | | | | | | [stable27] fix: prevent sharing permissions on user root folder
| * | fix: prevent sharing permissions on user root folderJohn Molakvoæ2023-09-041-1/+2
| |/ | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* / 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>
* fix: don't emit Hooks when hookpaths are emptyAnna Larch2023-08-211-16/+24
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* fix: Prevent PHP warnings when optional CacheEntry attributes are unsetFerdinand Thiessen2023-08-172-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>
* 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-051-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 #39642 from nextcloud/backport/39629/stable27Julius Härtl2023-08-031-1/+1
|\
| * fix(s3): add SSE-C parameters to headObject callTobias Zimmerer2023-07-311-1/+1
| | | | | | | | Signed-off-by: Tobias Zimmerer <3228193+ir0nhide@users.noreply.github.com>
* | Merge pull request #39499 from nextcloud/backport/38934/stable27Arthur Schiwon2023-08-021-5/+5
|\ \ | | | | | | [stable27] fix(s3): Pass SSE-C parameters for multipart upload
| * | fix(s3): Pass SSE-C parameters for multipart uploadJulius Härtl2023-07-201-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>
* Include PR #38965Git'Fellow2023-07-101-0/+1
| | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* implement optimized getDirectoryContent for DAVRobin Appelman2023-07-101-96/+125
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* refactor: adjust to unexposed searchBySystemTagArthur Schiwon2023-07-071-0/+4
| | | | | | | | | | | - in this backport we have to drop the breaking addition in \OCP\Files\Folder - this requires adjustments in check for the existance of the method but also in testing - another change in \OCP\SystemTag\ISystemTagManager can be applied as this interface is not implemented elsewhere Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix: cominbation of small fixesArthur Schiwon2023-07-061-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-07-062-41/+36
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix: favorites view and universal search against tagsArthur Schiwon2023-07-061-17/+30
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix: change if with conditionless else to switch; and a parameter valueArthur Schiwon2023-07-062-20/+25
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* use efficient tag retrieval on DAV report requestArthur Schiwon2023-07-062-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>
* fix(sse): don't update uncached filesRichard Steinmetz2023-07-041-13/+21
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* Merge pull request #38976 from nextcloud/backport/38625/stable27Arthur Schiwon2023-07-046-41/+40
|\ | | | | [stable27] fix: expect interface, not a specific implementation
| * ci: pro forma check of existence of internal methodArthur Schiwon2023-06-231-7/+9
| | | | | | | | | | | | | | createNode() is protected and used by Folder, but being an internal-only method it shall not be exposed in the Folder or IRootFolder interface. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * refactor: declare getMount() and getMountsIn() at IRootFolderArthur Schiwon2023-06-234-23/+11
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * chore: ugly type jugglingArthur Schiwon2023-06-235-20/+32
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * fix: add typehine for IRootFolderArthur Schiwon2023-06-231-7/+5
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * fix: expect interface, not a specific implementationArthur Schiwon2023-06-231-3/+2
| | | | | | | | | | | | | | - fixes a regression when deleting folders while music app was enabled, for a LazyRoot was passed to this method. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | add utility command for object store objectsRobin Appelman2023-07-041-1/+5
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | file scanner performance improvementsRobin Appelman2023-06-262-14/+10
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* use source cache when listing folder during recursive copyRobin Appelman2023-06-191-5/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix deprecated method callDominik Fuchß2023-06-141-1/+2
| | | | Signed-off-by: Dominik Fuchß <develop@fuchss.org>
* Changes after code review.Dominik Fuchß2023-06-141-2/+7
| | | | Signed-off-by: Dominik Fuchß <develop@fuchss.org>
* Add config variable for curl timeoutDominik Fuchß2023-06-141-2/+6
| | | | | | Add the config variable for curl calls ("remote_curl_timeout"). E.g., needed for nextcloud federation. Signed-off-by: Dominik Fuchß <develop@fuchss.org>
* Merge pull request #38449 from nextcloud/backport/38415/stable27Arthur Schiwon2023-06-011-6/+18
|\ | | | | [stable27] don't always check if we need to setup the object store root
| * don't always check if we need to setup the object store rootRobin Appelman2023-05-241-6/+18
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix: execute throws docrine exceptions not our wrapped onesJulius Härtl2023-05-241-2/+2
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #38065 from nextcloud/fix-result-mimetype-loaderSimon L2023-05-161-16/+10
|\ | | | | fix(mimetype): Fix returning value when finding existing mimetype in MimeType Loader
| * fix(mimetype): Fix returning value when finding existing mimetype in ↵Thomas Citharel2023-05-041-16/+10
| | | | | | | | | | | | | | | | | | | | | | MimeType Loader Also, only return the ID from the transaction as the mimetype string is already used from the function argument value Fixes https://github.com/nextcloud/server/pull/35744/files#r1184644610 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | Merge pull request #38196 from nextcloud/fix/fix-32bits-freespace-and-sizesCôme Chilliet2023-05-157-14/+17
|\ \ | | | | | | Get rid of more int casts in file size manipulations
| * | Fix return types in phpdocCôme Chilliet2023-05-155-5/+5
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | Get rid of more int casts in file size manipulationsCôme Chilliet2023-05-113-9/+12
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | Merge pull request #32961 from nextcloud/more-debug-lazyuserfolderCôme Chilliet2023-05-152-6/+18
|\ \ \ | | | | | | | | Make it easier to debug issue #32304
| * | | Add back missing slash in LazyUserFolder pathCôme Chilliet2023-05-091-1/+1
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
| * | | Make it easier to debug issue #32304Carl Schwan2023-05-042-7/+19
| | |/ | |/| | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | | Merge pull request #37709 from nextcloud/bugfix/deadlockJulius Härtl2023-05-131-2/+6
|\ \ \
| * | | fix: Check for wrapped retriable exceptionsJulius Härtl2023-05-021-2/+6
| | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | | Merge pull request #37621 from nextcloud/enh/lock-readable-pathJulius Härtl2023-05-131-0/+3
|\ \ \ \ | |_|_|/ |/| | |