nextcloud/lib/private
Christoph Wurst e3ae5571d5
Harden bootstrap context registrations when apps are missing
It's not expected that an app would be unavailable when the app
container is created but when services are registered, but Sentry tells
me on Nextcloud 21 there is an edge case where this can happen.
Therefore this patch hardens the code a bit to log a meaningful error
message and skipping the next code instead of logging a php notice for
the undefined index and an exception for calling a method on null.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-08-31 09:57:27 +02:00
..
Accounts Guard against null phone number value 2021-07-02 14:27:23 +02:00
Activity Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +02:00
App Fix app fetcher php comparison to allow wider ranges 2021-01-26 16:35:43 +01:00
AppFramework Harden bootstrap context registrations when apps are missing 2021-08-31 09:57:27 +02:00
Archive Fix return types for Archive::getStream 2021-01-07 12:38:41 +01:00
Authentication better cleanup of user files on user deletion 2021-08-12 18:16:51 +02:00
Avatar improve type handling of Avatar::generateAvatarFromSv 2021-05-26 17:11:42 +00:00
BackgroundJob Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
Broadcast/Events Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
Cache Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
Calendar Format code to a single space around binary operators 2020-10-05 20:25:24 +02:00
Collaboration Also limit to user group in case enumeration is enabled for groups and phonenumbers 2021-03-22 20:07:53 +01:00
Command Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
Comments Don't throw when comments is disabled 2021-06-02 13:42:49 +00:00
Console Update license headers for 19 2020-04-29 11:57:22 +02:00
Contacts/ContactsMenu Clean up the logic of the contacts store a bit 2021-03-11 08:42:19 +01:00
Dashboard Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
DB Only mark migrations as installed after execution 2021-03-30 19:51:12 +00:00
Diagnostics Update license headers for 19 2020-04-29 11:57:22 +02:00
DirectEditing Get the parent directory before creating a file from a template 2021-04-01 13:31:55 +00:00
Encryption Fix phpcs issues in encryption update 2021-04-01 07:56:41 +00:00
EventDispatcher Log deprecation notice of GenericEventWrapper just once 2021-02-05 10:14:48 +00:00
Federation Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
Files Unregister enc stream wrapper for any exception 2021-08-26 14:20:04 +02:00
FullTextSearch private cannot be final 2021-04-26 07:06:08 +00:00
GlobalScale Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
Group Bump doctrine/dbal from 2.12.0 to 3.0.0 2021-01-08 11:45:19 +01:00
Hooks Merge pull request #23766 from nextcloud/techdebt/noid/remove-unused-private-emitters 2020-10-29 10:03:36 +01:00
Http Use RFC-compliant URL encoding for cookies 2021-01-24 14:18:28 +01:00
IntegrityCheck Also load CA properly in integrity check 2021-01-20 10:57:41 +01:00
KnownUser Add known user check in avatar when v2-private scope 2021-03-29 07:03:37 +00:00
L10N Remove unneeded casts that were found by Psalm 2021-01-11 13:14:41 +01:00
LDAP make ILDAPProviderFactory usable when there is no ldap setup 2021-04-01 13:08:23 +02:00
legacy Fix #20913: Check image resource before attempting to preserve alpha 2021-08-18 15:42:14 +00:00
Lock Bump doctrine/dbal from 2.12.0 to 3.0.0 2021-01-08 11:45:19 +01:00
Lockdown also implement for FailedCache and NullCache 2021-03-16 16:17:58 +00:00
Log Sanitize more functions from the encryption app 2021-07-21 22:00:32 +02:00
Mail Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
Memcache Fix in locking cache check 2021-07-06 17:08:42 +00:00
Migration Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
Notification Remove unneeded casts that were found by Psalm 2021-01-11 13:14:41 +01:00
OCS Format code to a single space around binary operators 2020-10-05 20:25:24 +02:00
Preview Properly log errors in Movie previews generation 2021-08-19 18:04:40 +00:00
Remote Update license headers for 19 2020-04-29 11:57:22 +02:00
Repair Do not try to contact lookup server if not needed 2021-04-29 09:07:38 +02:00
RichObjectStrings Use exactly one empty line after the namespace declaration 2020-04-09 11:48:10 +02:00
Route Also unset the other possible unused paramters 2020-12-16 20:31:30 +01:00
Search use node search api for legacy file search endpoint 2021-03-23 13:41:22 +00:00
Security Explicitly check hex2bin input 2021-04-22 11:31:39 +00:00
Session Only trap E_ERROR in session handling 2021-08-17 10:12:58 +00:00
Settings Remove ISection in favor of IIconSection 2020-10-28 23:05:00 +01:00
Setup Only use alphanumeric chars for mysql password 2021-01-18 12:03:52 +01:00
Share Update license headers 2020-12-30 14:07:05 +01:00
Share20 Use noreply@ as email address for share emails 2021-05-28 11:42:16 +00:00
Support Unshift crash reports when they are loaded, to break the recusion 2021-06-25 06:37:07 +00:00
SystemTag The objectid is a string 2021-01-28 22:09:55 +01:00
Tagging Format code to a single space around binary operators 2020-10-05 20:25:24 +02:00
Template Do not allow to overwrite some variables 2021-04-27 13:40:14 +00:00
Updater Update license headers for 19 2020-04-29 11:57:22 +02:00
User Merge pull request #28495 from nextcloud/backport/28481/stable21 2021-08-18 12:49:51 -07:00
UserStatus Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +02:00
AllConfig.php Format code to a single space around binary operators 2020-10-05 20:25:24 +02:00
AppConfig.php Bump doctrine/dbal from 2.12.0 to 3.0.0 2021-01-08 11:45:19 +01:00
CapabilitiesManager.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
Color.php Update license headers for 19 2020-04-29 11:57:22 +02:00
Config.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
ContactsManager.php Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +02:00
DatabaseException.php Update license headers 2019-12-05 15:38:45 +01:00
DatabaseSetupException.php Update license headers 2019-12-05 15:38:45 +01:00
DateTimeFormatter.php Use elseif instead of else if 2020-04-10 10:35:09 +02:00
DateTimeZone.php Update license headers for 19 2020-04-29 11:57:22 +02:00
ForbiddenException.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
HintException.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
InitialStateService.php Fix default missing initial state for templates 2021-03-17 09:20:38 +00:00
Installer.php PHP 8+ deprecates openssl_free_key 2021-04-26 10:46:44 +00:00
LargeFileHelper.php Format code to a single space around binary operators 2020-10-05 20:25:24 +02:00
Log.php Avoid huge exception argument logging 2020-12-29 10:50:53 +01:00
MemoryInfo.php Update license headers for 19 2020-04-29 11:57:22 +02:00
NaturalSort.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
NaturalSort_DefaultCollator.php Update license headers 2019-12-05 15:38:45 +01:00
NavigationManager.php Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +02:00
NeedsUpdateException.php Update license headers 2019-12-05 15:38:45 +01:00
NotSquareException.php Update license headers 2019-12-05 15:38:45 +01:00
PreviewManager.php Disable HEIC image preview provider for performance concerns 2021-07-21 08:33:43 +00:00
PreviewNotAvailableException.php Update license headers 2019-12-05 15:38:45 +01:00
RedisFactory.php Update license headers for 19 2020-04-29 11:57:22 +02:00
Repair.php Do not try to contact lookup server if not needed 2021-04-29 09:07:38 +02:00
RepairException.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
Search.php Fix "misplaced variables" warning of Psalm in PHPDoc statements 2020-08-17 17:46:57 +02:00
Server.php make ILDAPProviderFactory usable when there is no ldap setup 2021-04-01 13:08:23 +02:00
ServerContainer.php First query the server container 2020-11-07 17:51:41 +01:00
ServerNotAvailableException.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
ServiceUnavailableException.php Update license headers 2019-12-05 15:38:45 +01:00
Setup.php Print an exception trace for setup exceptions 2021-01-07 20:11:25 +01:00
Streamer.php Only disable zip64 if the size is known 2020-09-01 15:01:12 +02:00
SubAdmin.php Fix typo in @deprecated PHPDoc tag 2020-11-24 00:13:09 +01:00
SystemConfig.php Use exactly one empty line after the namespace declaration 2020-04-09 11:48:10 +02:00
TagManager.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
Tags.php Bump doctrine/dbal from 2.12.0 to 3.0.0 2021-01-08 11:45:19 +01:00
TemplateLayout.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
TempManager.php Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +02:00
Updater.php Merge pull request #25034 from nextcloud/bugfix/noid/load-authentication-for-app-upgrades 2021-01-11 14:44:10 +01:00
URLGenerator.php Use IURLGenerator function to get value of \OC::$WEBROOT global 2021-08-16 13:12:47 +00:00