summaryrefslogtreecommitdiffstats
path: root/lib/private
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | shorten oauth2 client names before resizing the columnJulien Veyssier2023-07-101-0/+21
| | | | | | | | | | | | | | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* | | | drop the oauth2_clients trusted column, delete unsupported clients and their ↵Julien Veyssier2023-07-101-0/+34
|/ / / | | | | | | | | | | | | | | | access tokens Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* | | Merge pull request #39099 from nextcloud/backport/39093/stable27Arthur Schiwon2023-07-101-1/+1
|\ \ \ | |_|/ |/| | [stable27] Silent `imagecreatefromstring()` errors
| * | Silent imagecreatefromstring() errorsGit'Fellow2023-07-011-1/+1
| | | | | | | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* | | Merge pull request #38953 from nextcloud/backport/38917/stable27Arthur Schiwon2023-07-101-1/+6
|\ \ \ | |_|/ |/| | [stable27] fix(l10n): Fix plural issue with different locale and language
| * | fix(l10n): Fix plural issue with different locale and languageJoas Schilling2023-06-271-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need to use the language code here instead of the locale, because Symfony does not distinguish between the two and would otherwise e.g. with locale "Czech" and language "German" try to pick a non-existing plural rule, because Czech has 4 plural forms and German only 2. Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | 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-063-43/+43
| | | | | | | | | | | | 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-063-17/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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 getsystemvalue-functions in Mailer.phpSimon L2023-06-261-4/+4
|/ | | | Signed-off-by: Simon L <szaimen@e.mail.de>
* 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>
* fix(apache): Serve `mjs` (module javascript) as static filesFerdinand Thiessen2023-06-141-1/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* 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>
* | Merge pull request #38538 from nextcloud/backport/37758/stable27Andy Scherzinger2023-06-011-35/+55
|\ \ | | | | | | [stable27] redis: use atomic operations everywhere
| * | redis: move lua scripts to class and add type hintsVarun Patil2023-05-311-20/+20
| | | | | | | | | | | | Signed-off-by: Varun Patil <varunpatil@ucla.edu>
| * | redis: use atomic operations everywhereVarun Patil2023-05-311-35/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This removes a lot of acrobatics in the code and does each operation atomically using a lua script. This also reduces several round trips to the server, and the scripts are compiled and cached server-side. Notably, since all operations work only on a single key (except clear, which is broken anyway and shouldn't be used), they will continue to function and be atomic for Redis cluster. Signed-off-by: Varun Patil <varunpatil@ucla.edu>
* | | 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>
* | fix(dav): Fix avatar size in system address bookJoas Schilling2023-05-261-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | 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 #36692 from ↵Simon L2023-05-171-0/+4
|\ | | | | | | | | nextcloud/throw-exception-to-avoid-division-by-zero fix(preview-generator): Throw exception before dividing by zero when generating previews
| * fix(preview-generator): Throw exception before dividing by zero when ↵Thomas Citharel2023-02-131-0/+4
| | | | | | | | | | | | | | | | | | generating previews If the maximum preview generated gives some kind of invalid IImage, it's dimentions and filename can be set to zero. And then later we do a division by zero to keep the aspect ratio of the previews. Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | Merge pull request #38143 from nextcloud/fix/generated-avatars-cacheSimon L2023-05-162-10/+6
|\ \ | | | | | | Fix generated avatars cache
| * | Clear generated avatar cachesjld31032023-05-151-3/+4
| | | | | | | | | | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
| * | Properly clear cached avatarsjld31032023-05-151-7/+2
| | | | | | | | | | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* | | 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 #38274 from ↵Joas Schilling2023-05-161-22/+30
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | nextcloud/bugfix/noid/reach-max-delay-in-afterController fix(middleware): Also abort the request when reaching max delay in af…
| * | | fix(middleware): Also abort the request when reaching max delay in ↵Joas Schilling2023-05-151-22/+30
| | | | | | | | | | | | | | | | | | | | | | | | afterController Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | 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>