aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
Commit message (Collapse)AuthorAgeFilesLines
* Make DisplayNameCache return null if user doesn't existsCarl Schwan2022-08-161-4/+2
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Merge branch 'master' into display-name-cache-publicCarl Schwan2022-08-1546-289/+1319
|\ | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * Merge pull request #32363 from nextcloud/cleanup/remove-long-deprecated-classesCarl Schwan2022-08-083-149/+3
| |\ | | | | | | Remove OCP\App and OCP\BackgroundJob
| | * Remove OCP\App and OCP\BackgroundJobCarl Schwan2022-08-013-149/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Both deprecated since NC 23 IAppManager is the replacement for OCP\App unfortunately it can't be dependency injected in classes used by the installed otherwise the database connection is initialised too early Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * | Merge pull request #33398 from nextcloud/enh/noid/sensitive-methods-appsVincent Petry2022-08-051-0/+11
| |\ \ | | | | | | | | allow apps to specify methods carrying sensitive parameters
| | * | allow apps to specify methods carrying sensitive parametersArthur Schiwon2022-07-281-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | … in order to remove them from logging. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * | | Document all getIncomplete implementations as returning string|falseCôme Chilliet2022-08-021-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | Multiple fixesCarl Schwan2022-07-312-0/+175
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Fix tests - Use non deprecated event stuff - Add a bit of type hinting to the new stuff - More safe handling of instanceOfStorage (share might not be the first wrapper) - Fix resharing Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * | | Fix view-only code after code review commentsVincent Petry2022-07-281-2/+4
| | | | | | | | | | | | | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
| * | | Fix share attribute related tests + code styleVincent Petry2022-07-282-8/+8
| | | | | | | | | | | | | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
| * | | Add share attributes + prevent download permissionVincent Petry2022-07-282-1/+94
| | |/ | |/| | | | | | | | | | | | | Makes it possible to store download permission Signed-off-by: Vincent Petry <vincent@nextcloud.com>
| * | Add a public interface for the bruteforce throttler and register for injectionJoas Schilling2022-07-281-0/+126
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | Add argument to getSharesInFolder enable deep share lookupLouis Chemineau2022-07-262-10/+4
| | | | | | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
| * | Recursively fetch subsharesLouis Chemineau2022-07-261-0/+8
| |/ | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
| * Fix reading blob data as resourceThomas Citharel2022-07-251-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PostgreSQL returns data as resource when using IQueryBuilder::PARAM_LOB (which is used for QBMapper). Previously we just converted this resource using settype, which produced things like "Resource id #14" instead of the actual resource data. Now we read the stream correctly if the returned data is a resource See context at #22472 Fixes #22439 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
| * Merge pull request #32981 from nextcloud/typing/carl/simplefsCarl Schwan2022-07-184-43/+24
| |\ | | | | | | Add typing to SimpleFS
| | * Add typing to SimpleFSCarl Schwan2022-07-144-43/+24
| | | | | | | | | | | | | | | | | | - Fix putContent sometimes return a bool and sometimes nothing Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * | Merge pull request #27929 from nextcloud/enh/allowSsoToProvideSecretblizzz2022-07-181-0/+41
| |\ \ | | | | | | | | Allow SSO authentication to provide a user secret
| | * | Allow SSO authentication to provide a user secretMichaIng2022-07-121-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | Implementing PR #24837 from immerda Signed-off-by: MichaIng <micha@dietpi.com>
| * | | Move CappedMemoryCache to OCPCarl Schwan2022-07-141-0/+160
| |/ / | | | | | | | | | | | | | | | | | | | | | This is an helpful helper that should be used in more place than just server and this is already the case with groupfodlers, deck, user_oidc and more using it, so let's make it public Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * | Merge pull request #32552 from nextcloud/enh/improve-job-handling-commandsCôme Chilliet2022-07-121-27/+27
| |\ \ | | | | | | | | Improve job handling through occ
| | * | Fix typing in IJobListCôme Chilliet2022-07-111-18/+16
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| | * | Code cleaning of Background/ListCommandCôme Chilliet2022-07-111-9/+9
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| | * | Add command to list jobsCôme Chilliet2022-07-111-8/+10
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | Merge pull request #32973 from nextcloud/cleanup/avatar-codeCarl Schwan2022-07-114-31/+170
| |\ \ \ | | |/ / | |/| | Cleanup avatar related code
| | * | Make Color class publicCarl Schwan2022-07-053-6/+146
| | | | | | | | | | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| | * | Cleanup avatar related codeCarl Schwan2022-06-222-25/+24
| | |/ | | | | | | | | | | | | | | | | | | | | | - Move event listener to new event handling - Add typing almost everywhere - Fix inconsistent interface parameter Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * | Merge pull request #32865 from nextcloud/bugfix/remove-unecessary-rowblizzz2022-07-081-2/+2
| |\ \ | | | | | | | | Remove unecessary row and make compatible with db schema
| | * | Set as optional argumentVitor Mattos2022-06-131-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
| | * | Remove unecessary row and make compatible with db schemaVitor Mattos2022-06-131-2/+2
| | |/ | | | | | | | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
| * | Allow to expire comments of multiple objects with one callJoas Schilling2022-07-011-2/+2
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | Add status automationJoas Schilling2022-07-011-0/+12
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | Merge pull request #33007 from nextcloud/cleanup/federation-appCarl Schwan2022-06-281-0/+48
| |\ \ | | | | | | | | Summer cleanup of the federation app
| | * | Summer cleanup of the federation appCarl Schwan2022-06-241-0/+48
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | - Use IEventDispatcher instead of deprecated symfony dispatcher - Use LoggerInterface where possible - Use php 7.4 properties - Add type hinting where possible - Move federation hooks to a seperate listener Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * | Merge pull request #32863 from nextcloud/feature/add-comments-expire-dateblizzz2022-06-242-0/+28
| |\ \ | | | | | | | | Add comments expire date
| | * | Add comments expire dateVitor Mattos2022-06-152-0/+28
| | |/ | | | | | | | | | | | | | | | https://github.com/nextcloud/spreed/pull/7327 Signed-off-by: Vitor Mattos <vitor@php.rio>
| * / load widgets only of enabled appsArthur Schiwon2022-06-221-1/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | | | - per design, all enabled apps have their registration run - limitations, e.g. enabled by group, are not considered in that state, because we do not have a session (and might need apps?) - before instantiation of widget it has to be checked whether the providing app is actually enabled for the logged in user. - a public interface is being changed, but it is not meant to be implemented or used outside of the core handling. Therefore save to backport. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * Merge pull request #31966 from nextcloud/unencrypted-sizeVincent Petry2022-06-134-36/+58
| |\ | | | | | | store unencrypted size in the unencrypted_size column
| | * store unencrypted size in the unencrypted_size columnRobin Appelman2022-06-021-0/+10
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| | * add case statement to sql function builderRobin Appelman2022-06-021-0/+12
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| | * make expression build return IQueryFunction instead of stringRobin Appelman2022-06-022-36/+36
| | | | | | | | | | | | | | | | | | this allows passing the expressions to further expressions without them being escaped as column names Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | Merge pull request #32364 from nextcloud/dav-listenersVincent Petry2022-06-102-2/+3
| |\ \ | | | | | | | | 🧹 Remove all legacy event dispatchers from CalDAV & CardDAV backends
| | * | Fix a doctype in OCP for IAddressBookThomas Citharel2022-05-172-2/+3
| | | | | | | | | | | | | | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
| * | | Merge pull request #26582 from nextcloud/enhancement/logger-functionChristoph Wurst2022-06-071-0/+73
| |\ \ \ | | |_|/ | |/| | Add a helper function that makes it easier to log from anywhere
| | * | Add a helper function that makes it easier to log from anywhereChristoph Wurst2022-05-231-0/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Our DI is able to inject a logger implementation to any server and app class if they want one. However, sometimes DI isn't applicable or hard to add. In those cases we typically fell back to the *service locator* pattern where we acquired a logger from the server via a global variable. There were some issues with that * `\OC` is a private class, apps are not supposed to use it * `\OC::$server` is a global variable, a well known anti-pattern * `\OC::$server->get(...)` uses the service locator anti-pattern * `\OC::$server->get(...)` may throw * `\OC::$server->get(LoggerInterface::class)` is not scoped to an app With this patch I'm proposing a new helper function ``\OCP\Log\logger`` that can be used to acquire a logger more easily. This function is meant to be public API and therefore apps may use it and there is an optional parameter to specifiy the app ID. The function hides all the ugly details about the global variable and the potentially thrown exceptions from the user. Therefore it's guaranteed that you always get a logger instance. In the worst case you get a noop, though those occasions should be rare. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
| * | | Merge pull request #32485 from nextcloud/debt/noid/psalm-streamer-fhblizzz2022-05-311-1/+1
| |\ \ \ | | | | | | | | | | [Psalm] Fix docblock for addFileFromStream
| | * | | Fix type for resourceDaniel Kesselberg2022-05-241-1/+1
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
| * | | | Merge pull request #32628 from nextcloud/bugfix/noid/json-throwJoas Schilling2022-05-311-7/+1
| |\ \ \ \ | | | | | | | | | | | | Use JSON_THROW_ON_ERROR instead of custom error handling
| | * | | | Use JSON_THROW_ON_ERROR instead of custom error handlingJulius Härtl2022-05-301-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | | | | Add the ISizeEstimationMigrator interface for method getExportEstimatedSizeCôme Chilliet2022-05-302-8/+43
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>