aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
Commit message (Collapse)AuthorAgeFilesLines
* fix: add typehine for IRootFolderArthur Schiwon2023-07-041-6/+4
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix: expect interface, not a specific implementationArthur Schiwon2023-07-041-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>
* use source cache when listing folder during recursive copyRobin Appelman2023-06-191-5/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #38022 from nextcloud/backport/32877/stable25Arthur Schiwon2023-06-151-17/+19
|\ | | | | [stable25] allow storing multiple mounts for the same rootid in the mount cache
| * allow storing multiple mounts for the same rootid in the mount cacheRobin Appelman2023-05-311-17/+19
| | | | | | | | | | | | | | | | | | | | | | | | currently `[$userId, $rootId]` is used as the unique key for storing mounts in the mount cache, however there are cases where the same rootid is mounted in multiple places for a user which currently leads to not all of those mounts being added to the cache. Previously this didn't matter as the mount cache was only used to list users with access to a specific file, so a user having access to the file multiple times didn' change anything. With 24 the mount cache is used for more cases and multiple mounts for the same id becomes relevant. While I think there isn't a real negative effect atm besides missing the optimized path we should ensure that the mounts are properly listed Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #38760 from nextcloud/seekable-http-size-25Arthur Schiwon2023-06-151-1/+7
|\ \ | | | | | | [25] set stream size for SeekableHttpStream
| * | set stream size for SeekableHttpStreamRobin Appelman2023-06-121-1/+7
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | public interface to invalidate tokens of userArtur Neumann2023-06-152-3/+13
|/ / | | | | | | Signed-off-by: Artur Neumann <artur@jankaritech.com>
* | drop the oauth2_clients trusted column, delete unsupported clients and their ↵Julien Veyssier2023-06-071-0/+55
| | | | | | | | | | | | access tokens, shorten oauth2 client names Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* | Merge pull request #38480 from nextcloud/backport/38440/stable25Simon L2023-06-061-2/+2
|\ \ | | | | | | [stable25] fix: Catch Deadlock properly as execute throws Doctrine exceptions not our wrapped ones
| * | fix: execute throws docrine exceptions not our wrapped onesJulius Härtl2023-05-261-2/+2
| |/ | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* / fix: catch errors in id3parser libraryDaniel Kesselberg2023-05-301-2/+13
|/ | | | | | | | We use a forked version of getID3 to read embedded images from mp3 files to use them as previews. If the library is unable to extract a image or fails on something different we should handle it properly. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Merge pull request #38309 from nextcloud/backport/37961/stable25Arthur Schiwon2023-05-174-54/+177
|\ | | | | [stable25] SystemTags endpoint to return tags used by a user with meta data
| * fix: PHP 7.4 compatArthur Schiwon2023-05-161-1/+4
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * refactor: remove where specification from SELECT getterArthur Schiwon2023-05-163-7/+8
| | | | | | | | | | | | | | | | - search constraints are now fully in control of SystemTagsInFilesDetector::detectAssignedSystemTagsIn(), avoids duplication of a WHERE statement Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * refactor: remove SystemTag logic from Folder into QuerySearchHelperArthur Schiwon2023-05-163-52/+108
| | | | | | | | | | | | | | - adds OC\SystemTag\SystemTagsInFilesDetector where the search logic is moved to Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * feat: specify media type via url path: systemtags-current/$mediaTypeArthur Schiwon2023-05-162-2/+13
| | | | | | | | | | | | | | | | | | | | - only the media part of the mime type can be search, but not the full mime type. It can be added, should it become necessary. - thus fixes previously hardcoded selector for image/ types - also fixes a return type hint - adds a return type hint Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * PoC: SystemTags endpoint to return tags used by a user with meta dataArthur Schiwon2023-05-163-46/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Target case is photos app: when visiting the tags category, all systemtags of the whole cloud are retrieved. In subequent steps the next tag is requested until the browser view is filled with tag tiles (i.e. previews are requested just as well). With this approach, we incorpoate the dav search and look for user related tags that are used by them, and already returns the statistics (number of files tagged with the respective tag) as well as a file id for the purpose to load the preview. This defaults to the file with the highest id. Call: curl -s -u 'user:password' \ 'https://my.nc.srv/remote.php/dav/systemtags-current' \ -X PROPFIND -H 'Accept: text/plain' \ -H 'Accept-Language: en-US,en;q=0.5' -H 'Depth: 1' \ -H 'Content-Type: text/plain;charset=UTF-8' \ --data @/home/doe/request-systemtag-props.xml With request-systemtag-props.xml: <?xml version="1.0" encoding="UTF-8"?> <d:propfind xmlns:d="DAV:"> <d:prop xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns"> <oc:id/> <oc:display-name/> <oc:user-visible/> <oc:user-assignable/> <oc:can-assign/> <nc:files-assigned/> <nc:reference-fileid/> </d:prop> </d:propfind> Example output: … <d:response> <d:href>/master/remote.php/dav/systemtags/84</d:href> <d:propstat> <d:prop> <oc:id>84</oc:id> <oc:display-name>Computer</oc:display-name> <oc:user-visible>true</oc:user-visible> <oc:user-assignable>true</oc:user-assignable> <oc:can-assign>true</oc:can-assign> <nc:files-assigned>42</nc:files-assigned> <nc:reference-fileid>924022</nc:reference-fileid> </d:prop> <d:status>HTTP/1.1 200 OK</d:status> </d:propstat> </d:response> <d:response> <d:href>/remote.php/dav/systemtags/97</d:href> <d:propstat> <d:prop> <oc:id>97</oc:id> <oc:display-name>Bear</oc:display-name> <oc:user-visible>true</oc:user-visible> <oc:user-assignable>true</oc:user-assignable> <oc:can-assign>true</oc:can-assign> <nc:files-assigned>1</nc:files-assigned> <nc:reference-fileid>923422</nc:reference-fileid> </d:prop> <d:status>HTTP/1.1 200 OK</d:status> </d:propstat> </d:response> … Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Merge pull request #38090 from nextcloud/backport/35092/stable25Arthur Schiwon2023-05-171-2/+12
|\ \ | | | | | | [stable25] Check return value and improve error handling on certificate manager
| * | Fix conflictsGit'Fellow2023-05-041-1/+6
| | | | | | | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
| * | [BUGFIX] throw exception instead of error if unable to create file handler ↵Jan Messer2023-05-041-0/+4
| | | | | | | | | | | | | | | | | | (only exceptions are catch) Signed-off-by: Jan Messer <jan@mtec-studios.ch>
| * | [BUGFIX] check return value and improve error handlingJan Messer2023-05-041-1/+2
| | | | | | | | | | | | | | | | | | | | | With S3 primary storage there was a problem with getting the CA bundle from the storage without having the CA bundle for the connection which causes that the CertificateManager was throwing an Error. This commit improves the handling in CertificateManager and log unexpected behaviors. Signed-off-by: Jan Messer <jan@mtec-studios.ch>
* | | Merge pull request #38132 from nextcloud/backport/36895/stable25Git'Fellow2023-05-171-1/+1
|\ \ \ | | | | | | | | [stable25] Fix json_decode expecting a string
| * | | Update Checker.phpIlya Apasov2023-05-091-1/+1
| | | | | | | | | | | | Signed-off-by: Ilya Apasov <apasov@users.noreply.github.com>
* | | | Merge pull request #37850 from nextcloud/backport/37834/stable25Arthur Schiwon2023-05-171-1/+1
|\ \ \ \ | | | | | | | | | | [stable25] Fix TypeError in Profiler
| * | | | Fix TypeError in ProfilerCôme Chilliet2023-04-201-1/+1
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | | Merge pull request #37702 from nextcloud/backport/37617/stable25Arthur Schiwon2023-05-171-0/+3
|\ \ \ \ \ | | | | | | | | | | | | [stable25] handle not being able to write file for notify self-test
| * | | | | handle not being able to write file for notify self-testRobin Appelman2023-04-131-0/+3
| |/ / / / | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | | adjust patch Simon L2023-05-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Simon L <szaimen@e.mail.de> Signed-off-by: Simon L. <szaimen@e.mail.de>
* | | | | Clear generated avatar cachesjld31032023-05-161-3/+4
| | | | | | | | | | | | | | | | | | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* | | | | Properly clear cached avatarsjld31032023-05-161-7/+2
| |_|_|/ |/| | | | | | | | | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* | | | fix(middleware): Also abort the request when reaching max delay in ↵Joas Schilling2023-05-151-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | afterController Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | Merge pull request #38203 from nextcloud/backport/36893/stable25Côme Chilliet2023-05-151-1/+4
|\ \ \ \ | | | | | | | | | | [stable25] Make sure to never trigger files hooks on a null path
| * | | | Make sure to never trigger files hooks on a null pathCôme Chilliet2023-05-111-1/+4
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | | fix: Check for wrapped retriable exceptionsJulius Härtl2023-05-132-2/+11
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | | | fix: Throw `NotFoundExceptionInterface` to fulfill PSR container interface ↵Ferdinand Thiessen2023-05-112-2/+44
|/ / / / | | | | | | | | | | | | | | | | | | | | if class not found Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
* | / / fix: Use proper path when creating node instancesJulius Härtl2023-05-091-1/+5
| |/ / |/| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | increase imaginary timeouts as for big files the processing could take very longSimon L2023-05-041-0/+2
| |/ |/| | | | | Signed-off-by: Simon L <szaimen@e.mail.de>
* | Update expire_date column of table commentsVitor Mattos2023-05-031-1/+2
| | | | | | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
* | Merge pull request #37876 from nextcloud/backport/37820/stable25Robin Appelman2023-04-241-1/+13
|\ \ | | | | | | [stable25] ignore errors while trying to update parent storage_mtime
| * | ignore errors while trying to update parent storage_mtimeRobin Appelman2023-04-211-1/+13
| |/ | | | | | | | | | | in the worst case this should only cause an extra rescan later Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Add function_exists() checkGit'Fellow2023-04-211-1/+1
| | | | | | | | Co-authored-by: Simon L. <szaimen@e.mail.de> Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* | Fix free space problemsGit'Fellow2023-04-211-1/+1
|/ | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* Merge pull request #37690 from nextcloud/backport/37680/stable25Arthur Schiwon2023-04-121-1/+1
|\ | | | | [stable25] app type extended_authentication
| * app type extended_authenticationMaxence Lange2023-04-121-1/+1
| | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* | dispatch BeforeUserLoggedInEventMaxence Lange2023-04-121-2/+9
|/ | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Merge pull request #37560 from nextcloud/backport/36097/stable25Robin Appelman2023-04-063-13/+58
|\ | | | | [stable25] extend path-prefix optimizer to remove all cases of path_hash= when encountering a path prefix filter
| * extend path-prefix optimizer to remove all cases of path_hash= when ↵Robin Appelman2023-04-033-13/+58
| | | | | | | | | | | | encountering a path prefix filter Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #37535 from nextcloud/backport/35961/stable25Robin Appelman2023-04-062-0/+31
|\ \ | | | | | | [stable25] clear encrypted flag when moving away from encrypted storage
| * | clear encrypted flag when moving away from encrypted storageRobin Appelman2023-04-012-0/+31
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>