@@ -28,16 +28,16 @@ |
||
| 28 | 28 | namespace OCA\Settings\SetupChecks; |
| 29 | 29 | |
| 30 | 30 | class PhpOutputBuffering { |
| 31 | - public function description(): string { |
|
| 32 | - return 'PHP configuration option output_buffering must be disabled'; |
|
| 33 | - } |
|
| 31 | + public function description(): string { |
|
| 32 | + return 'PHP configuration option output_buffering must be disabled'; |
|
| 33 | + } |
|
| 34 | 34 | |
| 35 | - public function severity(): string { |
|
| 36 | - return 'error'; |
|
| 37 | - } |
|
| 35 | + public function severity(): string { |
|
| 36 | + return 'error'; |
|
| 37 | + } |
|
| 38 | 38 | |
| 39 | - public function run(): bool { |
|
| 40 | - $value = trim(ini_get('output_buffering')); |
|
| 41 | - return $value === '' || $value === '0'; |
|
| 42 | - } |
|
| 39 | + public function run(): bool { |
|
| 40 | + $value = trim(ini_get('output_buffering')); |
|
| 41 | + return $value === '' || $value === '0'; |
|
| 42 | + } |
|
| 43 | 43 | } |
@@ -28,15 +28,15 @@ |
||
| 28 | 28 | namespace OCA\Settings\SetupChecks; |
| 29 | 29 | |
| 30 | 30 | class PhpDefaultCharset { |
| 31 | - public function description(): string { |
|
| 32 | - return 'PHP configuration option default_charset should be UTF-8'; |
|
| 33 | - } |
|
| 31 | + public function description(): string { |
|
| 32 | + return 'PHP configuration option default_charset should be UTF-8'; |
|
| 33 | + } |
|
| 34 | 34 | |
| 35 | - public function severity(): string { |
|
| 36 | - return 'warning'; |
|
| 37 | - } |
|
| 35 | + public function severity(): string { |
|
| 36 | + return 'warning'; |
|
| 37 | + } |
|
| 38 | 38 | |
| 39 | - public function run(): bool { |
|
| 40 | - return strtoupper(trim(ini_get('default_charset'))) === 'UTF-8'; |
|
| 41 | - } |
|
| 39 | + public function run(): bool { |
|
| 40 | + return strtoupper(trim(ini_get('default_charset'))) === 'UTF-8'; |
|
| 41 | + } |
|
| 42 | 42 | } |
@@ -73,288 +73,288 @@ discard block |
||
| 73 | 73 | use Symfony\Component\EventDispatcher\GenericEvent; |
| 74 | 74 | |
| 75 | 75 | class CheckSetupController extends Controller { |
| 76 | - /** @var IConfig */ |
|
| 77 | - private $config; |
|
| 78 | - /** @var IClientService */ |
|
| 79 | - private $clientService; |
|
| 80 | - /** @var IURLGenerator */ |
|
| 81 | - private $urlGenerator; |
|
| 82 | - /** @var IL10N */ |
|
| 83 | - private $l10n; |
|
| 84 | - /** @var Checker */ |
|
| 85 | - private $checker; |
|
| 86 | - /** @var ILogger */ |
|
| 87 | - private $logger; |
|
| 88 | - /** @var EventDispatcherInterface */ |
|
| 89 | - private $dispatcher; |
|
| 90 | - /** @var IDBConnection|Connection */ |
|
| 91 | - private $db; |
|
| 92 | - /** @var ILockingProvider */ |
|
| 93 | - private $lockingProvider; |
|
| 94 | - /** @var IDateTimeFormatter */ |
|
| 95 | - private $dateTimeFormatter; |
|
| 96 | - /** @var MemoryInfo */ |
|
| 97 | - private $memoryInfo; |
|
| 98 | - /** @var ISecureRandom */ |
|
| 99 | - private $secureRandom; |
|
| 100 | - |
|
| 101 | - public function __construct($AppName, |
|
| 102 | - IRequest $request, |
|
| 103 | - IConfig $config, |
|
| 104 | - IClientService $clientService, |
|
| 105 | - IURLGenerator $urlGenerator, |
|
| 106 | - IL10N $l10n, |
|
| 107 | - Checker $checker, |
|
| 108 | - ILogger $logger, |
|
| 109 | - EventDispatcherInterface $dispatcher, |
|
| 110 | - IDBConnection $db, |
|
| 111 | - ILockingProvider $lockingProvider, |
|
| 112 | - IDateTimeFormatter $dateTimeFormatter, |
|
| 113 | - MemoryInfo $memoryInfo, |
|
| 114 | - ISecureRandom $secureRandom) { |
|
| 115 | - parent::__construct($AppName, $request); |
|
| 116 | - $this->config = $config; |
|
| 117 | - $this->clientService = $clientService; |
|
| 118 | - $this->urlGenerator = $urlGenerator; |
|
| 119 | - $this->l10n = $l10n; |
|
| 120 | - $this->checker = $checker; |
|
| 121 | - $this->logger = $logger; |
|
| 122 | - $this->dispatcher = $dispatcher; |
|
| 123 | - $this->db = $db; |
|
| 124 | - $this->lockingProvider = $lockingProvider; |
|
| 125 | - $this->dateTimeFormatter = $dateTimeFormatter; |
|
| 126 | - $this->memoryInfo = $memoryInfo; |
|
| 127 | - $this->secureRandom = $secureRandom; |
|
| 128 | - } |
|
| 129 | - |
|
| 130 | - /** |
|
| 131 | - * Checks if the server can connect to the internet using HTTPS and HTTP |
|
| 132 | - * @return bool |
|
| 133 | - */ |
|
| 134 | - private function hasInternetConnectivityProblems(): bool { |
|
| 135 | - if ($this->config->getSystemValue('has_internet_connection', true) === false) { |
|
| 136 | - return false; |
|
| 137 | - } |
|
| 138 | - |
|
| 139 | - $siteArray = $this->config->getSystemValue('connectivity_check_domains', [ |
|
| 140 | - 'www.nextcloud.com', 'www.startpage.com', 'www.eff.org', 'www.edri.org' |
|
| 141 | - ]); |
|
| 142 | - |
|
| 143 | - foreach ($siteArray as $site) { |
|
| 144 | - if ($this->isSiteReachable($site)) { |
|
| 145 | - return false; |
|
| 146 | - } |
|
| 147 | - } |
|
| 148 | - return true; |
|
| 149 | - } |
|
| 150 | - |
|
| 151 | - /** |
|
| 152 | - * Checks if the Nextcloud server can connect to a specific URL using both HTTPS and HTTP |
|
| 153 | - * @return bool |
|
| 154 | - */ |
|
| 155 | - private function isSiteReachable($sitename) { |
|
| 156 | - $httpSiteName = 'http://' . $sitename . '/'; |
|
| 157 | - $httpsSiteName = 'https://' . $sitename . '/'; |
|
| 158 | - |
|
| 159 | - try { |
|
| 160 | - $client = $this->clientService->newClient(); |
|
| 161 | - $client->get($httpSiteName); |
|
| 162 | - $client->get($httpsSiteName); |
|
| 163 | - } catch (\Exception $e) { |
|
| 164 | - $this->logger->logException($e, ['app' => 'internet_connection_check']); |
|
| 165 | - return false; |
|
| 166 | - } |
|
| 167 | - return true; |
|
| 168 | - } |
|
| 169 | - |
|
| 170 | - /** |
|
| 171 | - * Checks whether a local memcache is installed or not |
|
| 172 | - * @return bool |
|
| 173 | - */ |
|
| 174 | - private function isMemcacheConfigured() { |
|
| 175 | - return $this->config->getSystemValue('memcache.local', null) !== null; |
|
| 176 | - } |
|
| 177 | - |
|
| 178 | - /** |
|
| 179 | - * Whether PHP can generate "secure" pseudorandom integers |
|
| 180 | - * |
|
| 181 | - * @return bool |
|
| 182 | - */ |
|
| 183 | - private function isRandomnessSecure() { |
|
| 184 | - try { |
|
| 185 | - $this->secureRandom->generate(1); |
|
| 186 | - } catch (\Exception $ex) { |
|
| 187 | - return false; |
|
| 188 | - } |
|
| 189 | - return true; |
|
| 190 | - } |
|
| 191 | - |
|
| 192 | - /** |
|
| 193 | - * Public for the sake of unit-testing |
|
| 194 | - * |
|
| 195 | - * @return array |
|
| 196 | - */ |
|
| 197 | - protected function getCurlVersion() { |
|
| 198 | - return curl_version(); |
|
| 199 | - } |
|
| 200 | - |
|
| 201 | - /** |
|
| 202 | - * Check if the used SSL lib is outdated. Older OpenSSL and NSS versions do |
|
| 203 | - * have multiple bugs which likely lead to problems in combination with |
|
| 204 | - * functionality required by ownCloud such as SNI. |
|
| 205 | - * |
|
| 206 | - * @link https://github.com/owncloud/core/issues/17446#issuecomment-122877546 |
|
| 207 | - * @link https://bugzilla.redhat.com/show_bug.cgi?id=1241172 |
|
| 208 | - * @return string |
|
| 209 | - */ |
|
| 210 | - private function isUsedTlsLibOutdated() { |
|
| 211 | - // Don't run check when: |
|
| 212 | - // 1. Server has `has_internet_connection` set to false |
|
| 213 | - // 2. AppStore AND S2S is disabled |
|
| 214 | - if (!$this->config->getSystemValue('has_internet_connection', true)) { |
|
| 215 | - return ''; |
|
| 216 | - } |
|
| 217 | - if (!$this->config->getSystemValue('appstoreenabled', true) |
|
| 218 | - && $this->config->getAppValue('files_sharing', 'outgoing_server2server_share_enabled', 'yes') === 'no' |
|
| 219 | - && $this->config->getAppValue('files_sharing', 'incoming_server2server_share_enabled', 'yes') === 'no') { |
|
| 220 | - return ''; |
|
| 221 | - } |
|
| 222 | - |
|
| 223 | - $versionString = $this->getCurlVersion(); |
|
| 224 | - if (isset($versionString['ssl_version'])) { |
|
| 225 | - $versionString = $versionString['ssl_version']; |
|
| 226 | - } else { |
|
| 227 | - return ''; |
|
| 228 | - } |
|
| 229 | - |
|
| 230 | - $features = (string)$this->l10n->t('installing and updating apps via the app store or Federated Cloud Sharing'); |
|
| 231 | - if (!$this->config->getSystemValue('appstoreenabled', true)) { |
|
| 232 | - $features = (string)$this->l10n->t('Federated Cloud Sharing'); |
|
| 233 | - } |
|
| 234 | - |
|
| 235 | - // Check if at least OpenSSL after 1.01d or 1.0.2b |
|
| 236 | - if (strpos($versionString, 'OpenSSL/') === 0) { |
|
| 237 | - $majorVersion = substr($versionString, 8, 5); |
|
| 238 | - $patchRelease = substr($versionString, 13, 6); |
|
| 239 | - |
|
| 240 | - if (($majorVersion === '1.0.1' && ord($patchRelease) < ord('d')) || |
|
| 241 | - ($majorVersion === '1.0.2' && ord($patchRelease) < ord('b'))) { |
|
| 242 | - return $this->l10n->t('cURL is using an outdated %1$s version (%2$s). Please update your operating system or features such as %3$s will not work reliably.', ['OpenSSL', $versionString, $features]); |
|
| 243 | - } |
|
| 244 | - } |
|
| 245 | - |
|
| 246 | - // Check if NSS and perform heuristic check |
|
| 247 | - if (strpos($versionString, 'NSS/') === 0) { |
|
| 248 | - try { |
|
| 249 | - $firstClient = $this->clientService->newClient(); |
|
| 250 | - $firstClient->get('https://nextcloud.com/'); |
|
| 251 | - |
|
| 252 | - $secondClient = $this->clientService->newClient(); |
|
| 253 | - $secondClient->get('https://nextcloud.com/'); |
|
| 254 | - } catch (ClientException $e) { |
|
| 255 | - if ($e->getResponse()->getStatusCode() === 400) { |
|
| 256 | - return $this->l10n->t('cURL is using an outdated %1$s version (%2$s). Please update your operating system or features such as %3$s will not work reliably.', ['NSS', $versionString, $features]); |
|
| 257 | - } |
|
| 258 | - } |
|
| 259 | - } |
|
| 260 | - |
|
| 261 | - return ''; |
|
| 262 | - } |
|
| 263 | - |
|
| 264 | - /** |
|
| 265 | - * Whether the version is outdated |
|
| 266 | - * |
|
| 267 | - * @return bool |
|
| 268 | - */ |
|
| 269 | - protected function isPhpOutdated(): bool { |
|
| 270 | - return PHP_VERSION_ID < 70300; |
|
| 271 | - } |
|
| 272 | - |
|
| 273 | - /** |
|
| 274 | - * Whether the php version is still supported (at time of release) |
|
| 275 | - * according to: https://secure.php.net/supported-versions.php |
|
| 276 | - * |
|
| 277 | - * @return array |
|
| 278 | - */ |
|
| 279 | - private function isPhpSupported(): array { |
|
| 280 | - return ['eol' => $this->isPhpOutdated(), 'version' => PHP_VERSION]; |
|
| 281 | - } |
|
| 282 | - |
|
| 283 | - /** |
|
| 284 | - * Check if the reverse proxy configuration is working as expected |
|
| 285 | - * |
|
| 286 | - * @return bool |
|
| 287 | - */ |
|
| 288 | - private function forwardedForHeadersWorking() { |
|
| 289 | - $trustedProxies = $this->config->getSystemValue('trusted_proxies', []); |
|
| 290 | - $remoteAddress = $this->request->getHeader('REMOTE_ADDR'); |
|
| 291 | - |
|
| 292 | - if (empty($trustedProxies) && $this->request->getHeader('X-Forwarded-Host') !== '') { |
|
| 293 | - return false; |
|
| 294 | - } |
|
| 295 | - |
|
| 296 | - if (\is_array($trustedProxies) && \in_array($remoteAddress, $trustedProxies, true)) { |
|
| 297 | - return $remoteAddress !== $this->request->getRemoteAddress(); |
|
| 298 | - } |
|
| 299 | - |
|
| 300 | - // either not enabled or working correctly |
|
| 301 | - return true; |
|
| 302 | - } |
|
| 303 | - |
|
| 304 | - /** |
|
| 305 | - * Checks if the correct memcache module for PHP is installed. Only |
|
| 306 | - * fails if memcached is configured and the working module is not installed. |
|
| 307 | - * |
|
| 308 | - * @return bool |
|
| 309 | - */ |
|
| 310 | - private function isCorrectMemcachedPHPModuleInstalled() { |
|
| 311 | - if ($this->config->getSystemValue('memcache.distributed', null) !== '\OC\Memcache\Memcached') { |
|
| 312 | - return true; |
|
| 313 | - } |
|
| 314 | - |
|
| 315 | - // there are two different memcached modules for PHP |
|
| 316 | - // we only support memcached and not memcache |
|
| 317 | - // https://code.google.com/p/memcached/wiki/PHPClientComparison |
|
| 318 | - return !(!extension_loaded('memcached') && extension_loaded('memcache')); |
|
| 319 | - } |
|
| 320 | - |
|
| 321 | - /** |
|
| 322 | - * Checks if set_time_limit is not disabled. |
|
| 323 | - * |
|
| 324 | - * @return bool |
|
| 325 | - */ |
|
| 326 | - private function isSettimelimitAvailable() { |
|
| 327 | - if (function_exists('set_time_limit') |
|
| 328 | - && strpos(@ini_get('disable_functions'), 'set_time_limit') === false) { |
|
| 329 | - return true; |
|
| 330 | - } |
|
| 331 | - |
|
| 332 | - return false; |
|
| 333 | - } |
|
| 334 | - |
|
| 335 | - /** |
|
| 336 | - * @return RedirectResponse |
|
| 337 | - */ |
|
| 338 | - public function rescanFailedIntegrityCheck() { |
|
| 339 | - $this->checker->runInstanceVerification(); |
|
| 340 | - return new RedirectResponse( |
|
| 341 | - $this->urlGenerator->linkToRoute('settings.AdminSettings.index', ['section' => 'overview']) |
|
| 342 | - ); |
|
| 343 | - } |
|
| 344 | - |
|
| 345 | - /** |
|
| 346 | - * @NoCSRFRequired |
|
| 347 | - * @return DataResponse |
|
| 348 | - */ |
|
| 349 | - public function getFailedIntegrityCheckFiles() { |
|
| 350 | - if (!$this->checker->isCodeCheckEnforced()) { |
|
| 351 | - return new DataDisplayResponse('Integrity checker has been disabled. Integrity cannot be verified.'); |
|
| 352 | - } |
|
| 353 | - |
|
| 354 | - $completeResults = $this->checker->getResults(); |
|
| 355 | - |
|
| 356 | - if (!empty($completeResults)) { |
|
| 357 | - $formattedTextResponse = 'Technical information |
|
| 76 | + /** @var IConfig */ |
|
| 77 | + private $config; |
|
| 78 | + /** @var IClientService */ |
|
| 79 | + private $clientService; |
|
| 80 | + /** @var IURLGenerator */ |
|
| 81 | + private $urlGenerator; |
|
| 82 | + /** @var IL10N */ |
|
| 83 | + private $l10n; |
|
| 84 | + /** @var Checker */ |
|
| 85 | + private $checker; |
|
| 86 | + /** @var ILogger */ |
|
| 87 | + private $logger; |
|
| 88 | + /** @var EventDispatcherInterface */ |
|
| 89 | + private $dispatcher; |
|
| 90 | + /** @var IDBConnection|Connection */ |
|
| 91 | + private $db; |
|
| 92 | + /** @var ILockingProvider */ |
|
| 93 | + private $lockingProvider; |
|
| 94 | + /** @var IDateTimeFormatter */ |
|
| 95 | + private $dateTimeFormatter; |
|
| 96 | + /** @var MemoryInfo */ |
|
| 97 | + private $memoryInfo; |
|
| 98 | + /** @var ISecureRandom */ |
|
| 99 | + private $secureRandom; |
|
| 100 | + |
|
| 101 | + public function __construct($AppName, |
|
| 102 | + IRequest $request, |
|
| 103 | + IConfig $config, |
|
| 104 | + IClientService $clientService, |
|
| 105 | + IURLGenerator $urlGenerator, |
|
| 106 | + IL10N $l10n, |
|
| 107 | + Checker $checker, |
|
| 108 | + ILogger $logger, |
|
| 109 | + EventDispatcherInterface $dispatcher, |
|
| 110 | + IDBConnection $db, |
|
| 111 | + ILockingProvider $lockingProvider, |
|
| 112 | + IDateTimeFormatter $dateTimeFormatter, |
|
| 113 | + MemoryInfo $memoryInfo, |
|
| 114 | + ISecureRandom $secureRandom) { |
|
| 115 | + parent::__construct($AppName, $request); |
|
| 116 | + $this->config = $config; |
|
| 117 | + $this->clientService = $clientService; |
|
| 118 | + $this->urlGenerator = $urlGenerator; |
|
| 119 | + $this->l10n = $l10n; |
|
| 120 | + $this->checker = $checker; |
|
| 121 | + $this->logger = $logger; |
|
| 122 | + $this->dispatcher = $dispatcher; |
|
| 123 | + $this->db = $db; |
|
| 124 | + $this->lockingProvider = $lockingProvider; |
|
| 125 | + $this->dateTimeFormatter = $dateTimeFormatter; |
|
| 126 | + $this->memoryInfo = $memoryInfo; |
|
| 127 | + $this->secureRandom = $secureRandom; |
|
| 128 | + } |
|
| 129 | + |
|
| 130 | + /** |
|
| 131 | + * Checks if the server can connect to the internet using HTTPS and HTTP |
|
| 132 | + * @return bool |
|
| 133 | + */ |
|
| 134 | + private function hasInternetConnectivityProblems(): bool { |
|
| 135 | + if ($this->config->getSystemValue('has_internet_connection', true) === false) { |
|
| 136 | + return false; |
|
| 137 | + } |
|
| 138 | + |
|
| 139 | + $siteArray = $this->config->getSystemValue('connectivity_check_domains', [ |
|
| 140 | + 'www.nextcloud.com', 'www.startpage.com', 'www.eff.org', 'www.edri.org' |
|
| 141 | + ]); |
|
| 142 | + |
|
| 143 | + foreach ($siteArray as $site) { |
|
| 144 | + if ($this->isSiteReachable($site)) { |
|
| 145 | + return false; |
|
| 146 | + } |
|
| 147 | + } |
|
| 148 | + return true; |
|
| 149 | + } |
|
| 150 | + |
|
| 151 | + /** |
|
| 152 | + * Checks if the Nextcloud server can connect to a specific URL using both HTTPS and HTTP |
|
| 153 | + * @return bool |
|
| 154 | + */ |
|
| 155 | + private function isSiteReachable($sitename) { |
|
| 156 | + $httpSiteName = 'http://' . $sitename . '/'; |
|
| 157 | + $httpsSiteName = 'https://' . $sitename . '/'; |
|
| 158 | + |
|
| 159 | + try { |
|
| 160 | + $client = $this->clientService->newClient(); |
|
| 161 | + $client->get($httpSiteName); |
|
| 162 | + $client->get($httpsSiteName); |
|
| 163 | + } catch (\Exception $e) { |
|
| 164 | + $this->logger->logException($e, ['app' => 'internet_connection_check']); |
|
| 165 | + return false; |
|
| 166 | + } |
|
| 167 | + return true; |
|
| 168 | + } |
|
| 169 | + |
|
| 170 | + /** |
|
| 171 | + * Checks whether a local memcache is installed or not |
|
| 172 | + * @return bool |
|
| 173 | + */ |
|
| 174 | + private function isMemcacheConfigured() { |
|
| 175 | + return $this->config->getSystemValue('memcache.local', null) !== null; |
|
| 176 | + } |
|
| 177 | + |
|
| 178 | + /** |
|
| 179 | + * Whether PHP can generate "secure" pseudorandom integers |
|
| 180 | + * |
|
| 181 | + * @return bool |
|
| 182 | + */ |
|
| 183 | + private function isRandomnessSecure() { |
|
| 184 | + try { |
|
| 185 | + $this->secureRandom->generate(1); |
|
| 186 | + } catch (\Exception $ex) { |
|
| 187 | + return false; |
|
| 188 | + } |
|
| 189 | + return true; |
|
| 190 | + } |
|
| 191 | + |
|
| 192 | + /** |
|
| 193 | + * Public for the sake of unit-testing |
|
| 194 | + * |
|
| 195 | + * @return array |
|
| 196 | + */ |
|
| 197 | + protected function getCurlVersion() { |
|
| 198 | + return curl_version(); |
|
| 199 | + } |
|
| 200 | + |
|
| 201 | + /** |
|
| 202 | + * Check if the used SSL lib is outdated. Older OpenSSL and NSS versions do |
|
| 203 | + * have multiple bugs which likely lead to problems in combination with |
|
| 204 | + * functionality required by ownCloud such as SNI. |
|
| 205 | + * |
|
| 206 | + * @link https://github.com/owncloud/core/issues/17446#issuecomment-122877546 |
|
| 207 | + * @link https://bugzilla.redhat.com/show_bug.cgi?id=1241172 |
|
| 208 | + * @return string |
|
| 209 | + */ |
|
| 210 | + private function isUsedTlsLibOutdated() { |
|
| 211 | + // Don't run check when: |
|
| 212 | + // 1. Server has `has_internet_connection` set to false |
|
| 213 | + // 2. AppStore AND S2S is disabled |
|
| 214 | + if (!$this->config->getSystemValue('has_internet_connection', true)) { |
|
| 215 | + return ''; |
|
| 216 | + } |
|
| 217 | + if (!$this->config->getSystemValue('appstoreenabled', true) |
|
| 218 | + && $this->config->getAppValue('files_sharing', 'outgoing_server2server_share_enabled', 'yes') === 'no' |
|
| 219 | + && $this->config->getAppValue('files_sharing', 'incoming_server2server_share_enabled', 'yes') === 'no') { |
|
| 220 | + return ''; |
|
| 221 | + } |
|
| 222 | + |
|
| 223 | + $versionString = $this->getCurlVersion(); |
|
| 224 | + if (isset($versionString['ssl_version'])) { |
|
| 225 | + $versionString = $versionString['ssl_version']; |
|
| 226 | + } else { |
|
| 227 | + return ''; |
|
| 228 | + } |
|
| 229 | + |
|
| 230 | + $features = (string)$this->l10n->t('installing and updating apps via the app store or Federated Cloud Sharing'); |
|
| 231 | + if (!$this->config->getSystemValue('appstoreenabled', true)) { |
|
| 232 | + $features = (string)$this->l10n->t('Federated Cloud Sharing'); |
|
| 233 | + } |
|
| 234 | + |
|
| 235 | + // Check if at least OpenSSL after 1.01d or 1.0.2b |
|
| 236 | + if (strpos($versionString, 'OpenSSL/') === 0) { |
|
| 237 | + $majorVersion = substr($versionString, 8, 5); |
|
| 238 | + $patchRelease = substr($versionString, 13, 6); |
|
| 239 | + |
|
| 240 | + if (($majorVersion === '1.0.1' && ord($patchRelease) < ord('d')) || |
|
| 241 | + ($majorVersion === '1.0.2' && ord($patchRelease) < ord('b'))) { |
|
| 242 | + return $this->l10n->t('cURL is using an outdated %1$s version (%2$s). Please update your operating system or features such as %3$s will not work reliably.', ['OpenSSL', $versionString, $features]); |
|
| 243 | + } |
|
| 244 | + } |
|
| 245 | + |
|
| 246 | + // Check if NSS and perform heuristic check |
|
| 247 | + if (strpos($versionString, 'NSS/') === 0) { |
|
| 248 | + try { |
|
| 249 | + $firstClient = $this->clientService->newClient(); |
|
| 250 | + $firstClient->get('https://nextcloud.com/'); |
|
| 251 | + |
|
| 252 | + $secondClient = $this->clientService->newClient(); |
|
| 253 | + $secondClient->get('https://nextcloud.com/'); |
|
| 254 | + } catch (ClientException $e) { |
|
| 255 | + if ($e->getResponse()->getStatusCode() === 400) { |
|
| 256 | + return $this->l10n->t('cURL is using an outdated %1$s version (%2$s). Please update your operating system or features such as %3$s will not work reliably.', ['NSS', $versionString, $features]); |
|
| 257 | + } |
|
| 258 | + } |
|
| 259 | + } |
|
| 260 | + |
|
| 261 | + return ''; |
|
| 262 | + } |
|
| 263 | + |
|
| 264 | + /** |
|
| 265 | + * Whether the version is outdated |
|
| 266 | + * |
|
| 267 | + * @return bool |
|
| 268 | + */ |
|
| 269 | + protected function isPhpOutdated(): bool { |
|
| 270 | + return PHP_VERSION_ID < 70300; |
|
| 271 | + } |
|
| 272 | + |
|
| 273 | + /** |
|
| 274 | + * Whether the php version is still supported (at time of release) |
|
| 275 | + * according to: https://secure.php.net/supported-versions.php |
|
| 276 | + * |
|
| 277 | + * @return array |
|
| 278 | + */ |
|
| 279 | + private function isPhpSupported(): array { |
|
| 280 | + return ['eol' => $this->isPhpOutdated(), 'version' => PHP_VERSION]; |
|
| 281 | + } |
|
| 282 | + |
|
| 283 | + /** |
|
| 284 | + * Check if the reverse proxy configuration is working as expected |
|
| 285 | + * |
|
| 286 | + * @return bool |
|
| 287 | + */ |
|
| 288 | + private function forwardedForHeadersWorking() { |
|
| 289 | + $trustedProxies = $this->config->getSystemValue('trusted_proxies', []); |
|
| 290 | + $remoteAddress = $this->request->getHeader('REMOTE_ADDR'); |
|
| 291 | + |
|
| 292 | + if (empty($trustedProxies) && $this->request->getHeader('X-Forwarded-Host') !== '') { |
|
| 293 | + return false; |
|
| 294 | + } |
|
| 295 | + |
|
| 296 | + if (\is_array($trustedProxies) && \in_array($remoteAddress, $trustedProxies, true)) { |
|
| 297 | + return $remoteAddress !== $this->request->getRemoteAddress(); |
|
| 298 | + } |
|
| 299 | + |
|
| 300 | + // either not enabled or working correctly |
|
| 301 | + return true; |
|
| 302 | + } |
|
| 303 | + |
|
| 304 | + /** |
|
| 305 | + * Checks if the correct memcache module for PHP is installed. Only |
|
| 306 | + * fails if memcached is configured and the working module is not installed. |
|
| 307 | + * |
|
| 308 | + * @return bool |
|
| 309 | + */ |
|
| 310 | + private function isCorrectMemcachedPHPModuleInstalled() { |
|
| 311 | + if ($this->config->getSystemValue('memcache.distributed', null) !== '\OC\Memcache\Memcached') { |
|
| 312 | + return true; |
|
| 313 | + } |
|
| 314 | + |
|
| 315 | + // there are two different memcached modules for PHP |
|
| 316 | + // we only support memcached and not memcache |
|
| 317 | + // https://code.google.com/p/memcached/wiki/PHPClientComparison |
|
| 318 | + return !(!extension_loaded('memcached') && extension_loaded('memcache')); |
|
| 319 | + } |
|
| 320 | + |
|
| 321 | + /** |
|
| 322 | + * Checks if set_time_limit is not disabled. |
|
| 323 | + * |
|
| 324 | + * @return bool |
|
| 325 | + */ |
|
| 326 | + private function isSettimelimitAvailable() { |
|
| 327 | + if (function_exists('set_time_limit') |
|
| 328 | + && strpos(@ini_get('disable_functions'), 'set_time_limit') === false) { |
|
| 329 | + return true; |
|
| 330 | + } |
|
| 331 | + |
|
| 332 | + return false; |
|
| 333 | + } |
|
| 334 | + |
|
| 335 | + /** |
|
| 336 | + * @return RedirectResponse |
|
| 337 | + */ |
|
| 338 | + public function rescanFailedIntegrityCheck() { |
|
| 339 | + $this->checker->runInstanceVerification(); |
|
| 340 | + return new RedirectResponse( |
|
| 341 | + $this->urlGenerator->linkToRoute('settings.AdminSettings.index', ['section' => 'overview']) |
|
| 342 | + ); |
|
| 343 | + } |
|
| 344 | + |
|
| 345 | + /** |
|
| 346 | + * @NoCSRFRequired |
|
| 347 | + * @return DataResponse |
|
| 348 | + */ |
|
| 349 | + public function getFailedIntegrityCheckFiles() { |
|
| 350 | + if (!$this->checker->isCodeCheckEnforced()) { |
|
| 351 | + return new DataDisplayResponse('Integrity checker has been disabled. Integrity cannot be verified.'); |
|
| 352 | + } |
|
| 353 | + |
|
| 354 | + $completeResults = $this->checker->getResults(); |
|
| 355 | + |
|
| 356 | + if (!empty($completeResults)) { |
|
| 357 | + $formattedTextResponse = 'Technical information |
|
| 358 | 358 | ===================== |
| 359 | 359 | The following list covers which files have failed the integrity check. Please read |
| 360 | 360 | the previous linked documentation to learn more about the errors and how to fix |
@@ -363,373 +363,373 @@ discard block |
||
| 363 | 363 | Results |
| 364 | 364 | ======= |
| 365 | 365 | '; |
| 366 | - foreach ($completeResults as $context => $contextResult) { |
|
| 367 | - $formattedTextResponse .= "- $context\n"; |
|
| 368 | - |
|
| 369 | - foreach ($contextResult as $category => $result) { |
|
| 370 | - $formattedTextResponse .= "\t- $category\n"; |
|
| 371 | - if ($category !== 'EXCEPTION') { |
|
| 372 | - foreach ($result as $key => $results) { |
|
| 373 | - $formattedTextResponse .= "\t\t- $key\n"; |
|
| 374 | - } |
|
| 375 | - } else { |
|
| 376 | - foreach ($result as $key => $results) { |
|
| 377 | - $formattedTextResponse .= "\t\t- $results\n"; |
|
| 378 | - } |
|
| 379 | - } |
|
| 380 | - } |
|
| 381 | - } |
|
| 382 | - |
|
| 383 | - $formattedTextResponse .= ' |
|
| 366 | + foreach ($completeResults as $context => $contextResult) { |
|
| 367 | + $formattedTextResponse .= "- $context\n"; |
|
| 368 | + |
|
| 369 | + foreach ($contextResult as $category => $result) { |
|
| 370 | + $formattedTextResponse .= "\t- $category\n"; |
|
| 371 | + if ($category !== 'EXCEPTION') { |
|
| 372 | + foreach ($result as $key => $results) { |
|
| 373 | + $formattedTextResponse .= "\t\t- $key\n"; |
|
| 374 | + } |
|
| 375 | + } else { |
|
| 376 | + foreach ($result as $key => $results) { |
|
| 377 | + $formattedTextResponse .= "\t\t- $results\n"; |
|
| 378 | + } |
|
| 379 | + } |
|
| 380 | + } |
|
| 381 | + } |
|
| 382 | + |
|
| 383 | + $formattedTextResponse .= ' |
|
| 384 | 384 | Raw output |
| 385 | 385 | ========== |
| 386 | 386 | '; |
| 387 | - $formattedTextResponse .= print_r($completeResults, true); |
|
| 388 | - } else { |
|
| 389 | - $formattedTextResponse = 'No errors have been found.'; |
|
| 390 | - } |
|
| 391 | - |
|
| 392 | - |
|
| 393 | - $response = new DataDisplayResponse( |
|
| 394 | - $formattedTextResponse, |
|
| 395 | - Http::STATUS_OK, |
|
| 396 | - [ |
|
| 397 | - 'Content-Type' => 'text/plain', |
|
| 398 | - ] |
|
| 399 | - ); |
|
| 400 | - |
|
| 401 | - return $response; |
|
| 402 | - } |
|
| 403 | - |
|
| 404 | - /** |
|
| 405 | - * Checks whether a PHP opcache is properly set up |
|
| 406 | - * @return bool |
|
| 407 | - */ |
|
| 408 | - protected function isOpcacheProperlySetup() { |
|
| 409 | - $iniWrapper = new IniGetWrapper(); |
|
| 410 | - |
|
| 411 | - if (!$iniWrapper->getBool('opcache.enable')) { |
|
| 412 | - return false; |
|
| 413 | - } |
|
| 414 | - |
|
| 415 | - if (!$iniWrapper->getBool('opcache.save_comments')) { |
|
| 416 | - return false; |
|
| 417 | - } |
|
| 418 | - |
|
| 419 | - if ($iniWrapper->getNumeric('opcache.max_accelerated_files') < 10000) { |
|
| 420 | - return false; |
|
| 421 | - } |
|
| 422 | - |
|
| 423 | - if ($iniWrapper->getNumeric('opcache.memory_consumption') < 128) { |
|
| 424 | - return false; |
|
| 425 | - } |
|
| 426 | - |
|
| 427 | - if ($iniWrapper->getNumeric('opcache.interned_strings_buffer') < 8) { |
|
| 428 | - return false; |
|
| 429 | - } |
|
| 430 | - |
|
| 431 | - return true; |
|
| 432 | - } |
|
| 433 | - |
|
| 434 | - /** |
|
| 435 | - * Check if the required FreeType functions are present |
|
| 436 | - * @return bool |
|
| 437 | - */ |
|
| 438 | - protected function hasFreeTypeSupport() { |
|
| 439 | - return function_exists('imagettfbbox') && function_exists('imagettftext'); |
|
| 440 | - } |
|
| 441 | - |
|
| 442 | - protected function hasMissingIndexes(): array { |
|
| 443 | - $indexInfo = new MissingIndexInformation(); |
|
| 444 | - // Dispatch event so apps can also hint for pending index updates if needed |
|
| 445 | - $event = new GenericEvent($indexInfo); |
|
| 446 | - $this->dispatcher->dispatch(IDBConnection::CHECK_MISSING_INDEXES_EVENT, $event); |
|
| 447 | - |
|
| 448 | - return $indexInfo->getListOfMissingIndexes(); |
|
| 449 | - } |
|
| 450 | - |
|
| 451 | - protected function hasMissingColumns(): array { |
|
| 452 | - $indexInfo = new MissingColumnInformation(); |
|
| 453 | - // Dispatch event so apps can also hint for pending index updates if needed |
|
| 454 | - $event = new GenericEvent($indexInfo); |
|
| 455 | - $this->dispatcher->dispatch(IDBConnection::CHECK_MISSING_COLUMNS_EVENT, $event); |
|
| 456 | - |
|
| 457 | - return $indexInfo->getListOfMissingColumns(); |
|
| 458 | - } |
|
| 459 | - |
|
| 460 | - protected function isSqliteUsed() { |
|
| 461 | - return strpos($this->config->getSystemValue('dbtype'), 'sqlite') !== false; |
|
| 462 | - } |
|
| 463 | - |
|
| 464 | - protected function isReadOnlyConfig(): bool { |
|
| 465 | - return \OC_Helper::isReadOnlyConfigEnabled(); |
|
| 466 | - } |
|
| 467 | - |
|
| 468 | - protected function hasValidTransactionIsolationLevel(): bool { |
|
| 469 | - try { |
|
| 470 | - if ($this->db->getDatabasePlatform() instanceof SqlitePlatform) { |
|
| 471 | - return true; |
|
| 472 | - } |
|
| 473 | - |
|
| 474 | - return $this->db->getTransactionIsolation() === Connection::TRANSACTION_READ_COMMITTED; |
|
| 475 | - } catch (DBALException $e) { |
|
| 476 | - // ignore |
|
| 477 | - } |
|
| 478 | - |
|
| 479 | - return true; |
|
| 480 | - } |
|
| 481 | - |
|
| 482 | - protected function hasFileinfoInstalled(): bool { |
|
| 483 | - return \OC_Util::fileInfoLoaded(); |
|
| 484 | - } |
|
| 485 | - |
|
| 486 | - protected function hasWorkingFileLocking(): bool { |
|
| 487 | - return !($this->lockingProvider instanceof NoopLockingProvider); |
|
| 488 | - } |
|
| 489 | - |
|
| 490 | - protected function getSuggestedOverwriteCliURL(): string { |
|
| 491 | - $suggestedOverwriteCliUrl = ''; |
|
| 492 | - if ($this->config->getSystemValue('overwrite.cli.url', '') === '') { |
|
| 493 | - $suggestedOverwriteCliUrl = $this->request->getServerProtocol() . '://' . $this->request->getInsecureServerHost() . \OC::$WEBROOT; |
|
| 494 | - if (!$this->config->getSystemValue('config_is_read_only', false)) { |
|
| 495 | - // Set the overwrite URL when it was not set yet. |
|
| 496 | - $this->config->setSystemValue('overwrite.cli.url', $suggestedOverwriteCliUrl); |
|
| 497 | - $suggestedOverwriteCliUrl = ''; |
|
| 498 | - } |
|
| 499 | - } |
|
| 500 | - return $suggestedOverwriteCliUrl; |
|
| 501 | - } |
|
| 502 | - |
|
| 503 | - protected function getLastCronInfo(): array { |
|
| 504 | - $lastCronRun = $this->config->getAppValue('core', 'lastcron', 0); |
|
| 505 | - return [ |
|
| 506 | - 'diffInSeconds' => time() - $lastCronRun, |
|
| 507 | - 'relativeTime' => $this->dateTimeFormatter->formatTimeSpan($lastCronRun), |
|
| 508 | - 'backgroundJobsUrl' => $this->urlGenerator->linkToRoute('settings.AdminSettings.index', ['section' => 'server']) . '#backgroundjobs', |
|
| 509 | - ]; |
|
| 510 | - } |
|
| 511 | - |
|
| 512 | - protected function getCronErrors() { |
|
| 513 | - $errors = json_decode($this->config->getAppValue('core', 'cronErrors', ''), true); |
|
| 514 | - |
|
| 515 | - if (is_array($errors)) { |
|
| 516 | - return $errors; |
|
| 517 | - } |
|
| 518 | - |
|
| 519 | - return []; |
|
| 520 | - } |
|
| 521 | - |
|
| 522 | - protected function isPHPMailerUsed(): bool { |
|
| 523 | - return $this->config->getSystemValue('mail_smtpmode', 'smtp') === 'php'; |
|
| 524 | - } |
|
| 525 | - |
|
| 526 | - protected function hasOpcacheLoaded(): bool { |
|
| 527 | - return extension_loaded('Zend OPcache'); |
|
| 528 | - } |
|
| 529 | - |
|
| 530 | - /** |
|
| 531 | - * Iterates through the configured app roots and |
|
| 532 | - * tests if the subdirectories are owned by the same user than the current user. |
|
| 533 | - * |
|
| 534 | - * @return array |
|
| 535 | - */ |
|
| 536 | - protected function getAppDirsWithDifferentOwner(): array { |
|
| 537 | - $currentUser = posix_getuid(); |
|
| 538 | - $appDirsWithDifferentOwner = [[]]; |
|
| 539 | - |
|
| 540 | - foreach (OC::$APPSROOTS as $appRoot) { |
|
| 541 | - if ($appRoot['writable'] === true) { |
|
| 542 | - $appDirsWithDifferentOwner[] = $this->getAppDirsWithDifferentOwnerForAppRoot($currentUser, $appRoot); |
|
| 543 | - } |
|
| 544 | - } |
|
| 545 | - |
|
| 546 | - $appDirsWithDifferentOwner = array_merge(...$appDirsWithDifferentOwner); |
|
| 547 | - sort($appDirsWithDifferentOwner); |
|
| 548 | - |
|
| 549 | - return $appDirsWithDifferentOwner; |
|
| 550 | - } |
|
| 551 | - |
|
| 552 | - /** |
|
| 553 | - * Tests if the directories for one apps directory are writable by the current user. |
|
| 554 | - * |
|
| 555 | - * @param int $currentUser The current user |
|
| 556 | - * @param array $appRoot The app root config |
|
| 557 | - * @return string[] The none writable directory paths inside the app root |
|
| 558 | - */ |
|
| 559 | - private function getAppDirsWithDifferentOwnerForAppRoot(int $currentUser, array $appRoot): array { |
|
| 560 | - $appDirsWithDifferentOwner = []; |
|
| 561 | - $appsPath = $appRoot['path']; |
|
| 562 | - $appsDir = new DirectoryIterator($appRoot['path']); |
|
| 563 | - |
|
| 564 | - foreach ($appsDir as $fileInfo) { |
|
| 565 | - if ($fileInfo->isDir() && !$fileInfo->isDot()) { |
|
| 566 | - $absAppPath = $appsPath . DIRECTORY_SEPARATOR . $fileInfo->getFilename(); |
|
| 567 | - $appDirUser = fileowner($absAppPath); |
|
| 568 | - if ($appDirUser !== $currentUser) { |
|
| 569 | - $appDirsWithDifferentOwner[] = $absAppPath; |
|
| 570 | - } |
|
| 571 | - } |
|
| 572 | - } |
|
| 573 | - |
|
| 574 | - return $appDirsWithDifferentOwner; |
|
| 575 | - } |
|
| 576 | - |
|
| 577 | - /** |
|
| 578 | - * Checks for potential PHP modules that would improve the instance |
|
| 579 | - * |
|
| 580 | - * @return string[] A list of PHP modules that is recommended |
|
| 581 | - */ |
|
| 582 | - protected function hasRecommendedPHPModules(): array { |
|
| 583 | - $recommendedPHPModules = []; |
|
| 584 | - |
|
| 585 | - if (!extension_loaded('intl')) { |
|
| 586 | - $recommendedPHPModules[] = 'intl'; |
|
| 587 | - } |
|
| 588 | - |
|
| 589 | - if (!extension_loaded('bcmath')) { |
|
| 590 | - $recommendedPHPModules[] = 'bcmath'; |
|
| 591 | - } |
|
| 592 | - |
|
| 593 | - if (!extension_loaded('gmp')) { |
|
| 594 | - $recommendedPHPModules[] = 'gmp'; |
|
| 595 | - } |
|
| 596 | - |
|
| 597 | - if ($this->config->getAppValue('theming', 'enabled', 'no') === 'yes') { |
|
| 598 | - if (!extension_loaded('imagick')) { |
|
| 599 | - $recommendedPHPModules[] = 'imagick'; |
|
| 600 | - } |
|
| 601 | - } |
|
| 602 | - |
|
| 603 | - return $recommendedPHPModules; |
|
| 604 | - } |
|
| 605 | - |
|
| 606 | - protected function isMysqlUsedWithoutUTF8MB4(): bool { |
|
| 607 | - return ($this->config->getSystemValue('dbtype', 'sqlite') === 'mysql') && ($this->config->getSystemValue('mysql.utf8mb4', false) === false); |
|
| 608 | - } |
|
| 609 | - |
|
| 610 | - protected function hasBigIntConversionPendingColumns(): array { |
|
| 611 | - // copy of ConvertFilecacheBigInt::getColumnsByTable() |
|
| 612 | - $tables = [ |
|
| 613 | - 'activity' => ['activity_id', 'object_id'], |
|
| 614 | - 'activity_mq' => ['mail_id'], |
|
| 615 | - 'authtoken' => ['id'], |
|
| 616 | - 'bruteforce_attempts' => ['id'], |
|
| 617 | - 'filecache' => ['fileid', 'storage', 'parent', 'mimetype', 'mimepart', 'mtime', 'storage_mtime'], |
|
| 618 | - 'file_locks' => ['id'], |
|
| 619 | - 'jobs' => ['id'], |
|
| 620 | - 'mimetypes' => ['id'], |
|
| 621 | - 'mounts' => ['id', 'storage_id', 'root_id', 'mount_id'], |
|
| 622 | - 'storages' => ['numeric_id'], |
|
| 623 | - ]; |
|
| 624 | - |
|
| 625 | - $schema = new SchemaWrapper($this->db); |
|
| 626 | - $isSqlite = $this->db->getDatabasePlatform() instanceof SqlitePlatform; |
|
| 627 | - $pendingColumns = []; |
|
| 628 | - |
|
| 629 | - foreach ($tables as $tableName => $columns) { |
|
| 630 | - if (!$schema->hasTable($tableName)) { |
|
| 631 | - continue; |
|
| 632 | - } |
|
| 633 | - |
|
| 634 | - $table = $schema->getTable($tableName); |
|
| 635 | - foreach ($columns as $columnName) { |
|
| 636 | - $column = $table->getColumn($columnName); |
|
| 637 | - $isAutoIncrement = $column->getAutoincrement(); |
|
| 638 | - $isAutoIncrementOnSqlite = $isSqlite && $isAutoIncrement; |
|
| 639 | - if ($column->getType()->getName() !== Types::BIGINT && !$isAutoIncrementOnSqlite) { |
|
| 640 | - $pendingColumns[] = $tableName . '.' . $columnName; |
|
| 641 | - } |
|
| 642 | - } |
|
| 643 | - } |
|
| 644 | - |
|
| 645 | - return $pendingColumns; |
|
| 646 | - } |
|
| 647 | - |
|
| 648 | - protected function isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed(): bool { |
|
| 649 | - $objectStore = $this->config->getSystemValue('objectstore', null); |
|
| 650 | - $objectStoreMultibucket = $this->config->getSystemValue('objectstore_multibucket', null); |
|
| 651 | - |
|
| 652 | - if (!isset($objectStoreMultibucket) && !isset($objectStore)) { |
|
| 653 | - return true; |
|
| 654 | - } |
|
| 655 | - |
|
| 656 | - if (isset($objectStoreMultibucket['class']) && $objectStoreMultibucket['class'] !== 'OC\\Files\\ObjectStore\\S3') { |
|
| 657 | - return true; |
|
| 658 | - } |
|
| 659 | - |
|
| 660 | - if (isset($objectStore['class']) && $objectStore['class'] !== 'OC\\Files\\ObjectStore\\S3') { |
|
| 661 | - return true; |
|
| 662 | - } |
|
| 663 | - |
|
| 664 | - $tempPath = sys_get_temp_dir(); |
|
| 665 | - if (!is_dir($tempPath)) { |
|
| 666 | - $this->logger->error('Error while checking the temporary PHP path - it was not properly set to a directory. value: ' . $tempPath); |
|
| 667 | - return false; |
|
| 668 | - } |
|
| 669 | - $freeSpaceInTemp = disk_free_space($tempPath); |
|
| 670 | - if ($freeSpaceInTemp === false) { |
|
| 671 | - $this->logger->error('Error while checking the available disk space of temporary PHP path - no free disk space returned. temporary path: ' . $tempPath); |
|
| 672 | - return false; |
|
| 673 | - } |
|
| 674 | - |
|
| 675 | - $freeSpaceInTempInGB = $freeSpaceInTemp / 1024 / 1024 / 1024; |
|
| 676 | - if ($freeSpaceInTempInGB > 50) { |
|
| 677 | - return true; |
|
| 678 | - } |
|
| 679 | - |
|
| 680 | - $this->logger->warning('Checking the available space in the temporary path resulted in ' . round($freeSpaceInTempInGB, 1) . ' GB instead of the recommended 50GB. Path: ' . $tempPath); |
|
| 681 | - return false; |
|
| 682 | - } |
|
| 683 | - |
|
| 684 | - /** |
|
| 685 | - * @return DataResponse |
|
| 686 | - */ |
|
| 687 | - public function check() { |
|
| 688 | - $phpDefaultCharset = new PhpDefaultCharset(); |
|
| 689 | - $phpOutputBuffering = new PhpOutputBuffering(); |
|
| 690 | - return new DataResponse( |
|
| 691 | - [ |
|
| 692 | - 'isGetenvServerWorking' => !empty(getenv('PATH')), |
|
| 693 | - 'isReadOnlyConfig' => $this->isReadOnlyConfig(), |
|
| 694 | - 'hasValidTransactionIsolationLevel' => $this->hasValidTransactionIsolationLevel(), |
|
| 695 | - 'hasFileinfoInstalled' => $this->hasFileinfoInstalled(), |
|
| 696 | - 'hasWorkingFileLocking' => $this->hasWorkingFileLocking(), |
|
| 697 | - 'suggestedOverwriteCliURL' => $this->getSuggestedOverwriteCliURL(), |
|
| 698 | - 'cronInfo' => $this->getLastCronInfo(), |
|
| 699 | - 'cronErrors' => $this->getCronErrors(), |
|
| 700 | - 'serverHasInternetConnectionProblems' => $this->hasInternetConnectivityProblems(), |
|
| 701 | - 'isMemcacheConfigured' => $this->isMemcacheConfigured(), |
|
| 702 | - 'memcacheDocs' => $this->urlGenerator->linkToDocs('admin-performance'), |
|
| 703 | - 'isRandomnessSecure' => $this->isRandomnessSecure(), |
|
| 704 | - 'securityDocs' => $this->urlGenerator->linkToDocs('admin-security'), |
|
| 705 | - 'isUsedTlsLibOutdated' => $this->isUsedTlsLibOutdated(), |
|
| 706 | - 'phpSupported' => $this->isPhpSupported(), |
|
| 707 | - 'forwardedForHeadersWorking' => $this->forwardedForHeadersWorking(), |
|
| 708 | - 'reverseProxyDocs' => $this->urlGenerator->linkToDocs('admin-reverse-proxy'), |
|
| 709 | - 'isCorrectMemcachedPHPModuleInstalled' => $this->isCorrectMemcachedPHPModuleInstalled(), |
|
| 710 | - 'hasPassedCodeIntegrityCheck' => $this->checker->hasPassedCheck(), |
|
| 711 | - 'codeIntegrityCheckerDocumentation' => $this->urlGenerator->linkToDocs('admin-code-integrity'), |
|
| 712 | - 'isOpcacheProperlySetup' => $this->isOpcacheProperlySetup(), |
|
| 713 | - 'hasOpcacheLoaded' => $this->hasOpcacheLoaded(), |
|
| 714 | - 'phpOpcacheDocumentation' => $this->urlGenerator->linkToDocs('admin-php-opcache'), |
|
| 715 | - 'isSettimelimitAvailable' => $this->isSettimelimitAvailable(), |
|
| 716 | - 'hasFreeTypeSupport' => $this->hasFreeTypeSupport(), |
|
| 717 | - 'missingIndexes' => $this->hasMissingIndexes(), |
|
| 718 | - 'missingColumns' => $this->hasMissingColumns(), |
|
| 719 | - 'isSqliteUsed' => $this->isSqliteUsed(), |
|
| 720 | - 'databaseConversionDocumentation' => $this->urlGenerator->linkToDocs('admin-db-conversion'), |
|
| 721 | - 'isPHPMailerUsed' => $this->isPHPMailerUsed(), |
|
| 722 | - 'mailSettingsDocumentation' => $this->urlGenerator->getAbsoluteURL('index.php/settings/admin'), |
|
| 723 | - 'isMemoryLimitSufficient' => $this->memoryInfo->isMemoryLimitSufficient(), |
|
| 724 | - 'appDirsWithDifferentOwner' => $this->getAppDirsWithDifferentOwner(), |
|
| 725 | - 'recommendedPHPModules' => $this->hasRecommendedPHPModules(), |
|
| 726 | - 'pendingBigIntConversionColumns' => $this->hasBigIntConversionPendingColumns(), |
|
| 727 | - 'isMysqlUsedWithoutUTF8MB4' => $this->isMysqlUsedWithoutUTF8MB4(), |
|
| 728 | - 'isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed' => $this->isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed(), |
|
| 729 | - 'reverseProxyGeneratedURL' => $this->urlGenerator->getAbsoluteURL('index.php'), |
|
| 730 | - PhpDefaultCharset::class => ['pass' => $phpDefaultCharset->run(), 'description' => $phpDefaultCharset->description(), 'severity' => $phpDefaultCharset->severity()], |
|
| 731 | - PhpOutputBuffering::class => ['pass' => $phpOutputBuffering->run(), 'description' => $phpOutputBuffering->description(), 'severity' => $phpOutputBuffering->severity()], |
|
| 732 | - ] |
|
| 733 | - ); |
|
| 734 | - } |
|
| 387 | + $formattedTextResponse .= print_r($completeResults, true); |
|
| 388 | + } else { |
|
| 389 | + $formattedTextResponse = 'No errors have been found.'; |
|
| 390 | + } |
|
| 391 | + |
|
| 392 | + |
|
| 393 | + $response = new DataDisplayResponse( |
|
| 394 | + $formattedTextResponse, |
|
| 395 | + Http::STATUS_OK, |
|
| 396 | + [ |
|
| 397 | + 'Content-Type' => 'text/plain', |
|
| 398 | + ] |
|
| 399 | + ); |
|
| 400 | + |
|
| 401 | + return $response; |
|
| 402 | + } |
|
| 403 | + |
|
| 404 | + /** |
|
| 405 | + * Checks whether a PHP opcache is properly set up |
|
| 406 | + * @return bool |
|
| 407 | + */ |
|
| 408 | + protected function isOpcacheProperlySetup() { |
|
| 409 | + $iniWrapper = new IniGetWrapper(); |
|
| 410 | + |
|
| 411 | + if (!$iniWrapper->getBool('opcache.enable')) { |
|
| 412 | + return false; |
|
| 413 | + } |
|
| 414 | + |
|
| 415 | + if (!$iniWrapper->getBool('opcache.save_comments')) { |
|
| 416 | + return false; |
|
| 417 | + } |
|
| 418 | + |
|
| 419 | + if ($iniWrapper->getNumeric('opcache.max_accelerated_files') < 10000) { |
|
| 420 | + return false; |
|
| 421 | + } |
|
| 422 | + |
|
| 423 | + if ($iniWrapper->getNumeric('opcache.memory_consumption') < 128) { |
|
| 424 | + return false; |
|
| 425 | + } |
|
| 426 | + |
|
| 427 | + if ($iniWrapper->getNumeric('opcache.interned_strings_buffer') < 8) { |
|
| 428 | + return false; |
|
| 429 | + } |
|
| 430 | + |
|
| 431 | + return true; |
|
| 432 | + } |
|
| 433 | + |
|
| 434 | + /** |
|
| 435 | + * Check if the required FreeType functions are present |
|
| 436 | + * @return bool |
|
| 437 | + */ |
|
| 438 | + protected function hasFreeTypeSupport() { |
|
| 439 | + return function_exists('imagettfbbox') && function_exists('imagettftext'); |
|
| 440 | + } |
|
| 441 | + |
|
| 442 | + protected function hasMissingIndexes(): array { |
|
| 443 | + $indexInfo = new MissingIndexInformation(); |
|
| 444 | + // Dispatch event so apps can also hint for pending index updates if needed |
|
| 445 | + $event = new GenericEvent($indexInfo); |
|
| 446 | + $this->dispatcher->dispatch(IDBConnection::CHECK_MISSING_INDEXES_EVENT, $event); |
|
| 447 | + |
|
| 448 | + return $indexInfo->getListOfMissingIndexes(); |
|
| 449 | + } |
|
| 450 | + |
|
| 451 | + protected function hasMissingColumns(): array { |
|
| 452 | + $indexInfo = new MissingColumnInformation(); |
|
| 453 | + // Dispatch event so apps can also hint for pending index updates if needed |
|
| 454 | + $event = new GenericEvent($indexInfo); |
|
| 455 | + $this->dispatcher->dispatch(IDBConnection::CHECK_MISSING_COLUMNS_EVENT, $event); |
|
| 456 | + |
|
| 457 | + return $indexInfo->getListOfMissingColumns(); |
|
| 458 | + } |
|
| 459 | + |
|
| 460 | + protected function isSqliteUsed() { |
|
| 461 | + return strpos($this->config->getSystemValue('dbtype'), 'sqlite') !== false; |
|
| 462 | + } |
|
| 463 | + |
|
| 464 | + protected function isReadOnlyConfig(): bool { |
|
| 465 | + return \OC_Helper::isReadOnlyConfigEnabled(); |
|
| 466 | + } |
|
| 467 | + |
|
| 468 | + protected function hasValidTransactionIsolationLevel(): bool { |
|
| 469 | + try { |
|
| 470 | + if ($this->db->getDatabasePlatform() instanceof SqlitePlatform) { |
|
| 471 | + return true; |
|
| 472 | + } |
|
| 473 | + |
|
| 474 | + return $this->db->getTransactionIsolation() === Connection::TRANSACTION_READ_COMMITTED; |
|
| 475 | + } catch (DBALException $e) { |
|
| 476 | + // ignore |
|
| 477 | + } |
|
| 478 | + |
|
| 479 | + return true; |
|
| 480 | + } |
|
| 481 | + |
|
| 482 | + protected function hasFileinfoInstalled(): bool { |
|
| 483 | + return \OC_Util::fileInfoLoaded(); |
|
| 484 | + } |
|
| 485 | + |
|
| 486 | + protected function hasWorkingFileLocking(): bool { |
|
| 487 | + return !($this->lockingProvider instanceof NoopLockingProvider); |
|
| 488 | + } |
|
| 489 | + |
|
| 490 | + protected function getSuggestedOverwriteCliURL(): string { |
|
| 491 | + $suggestedOverwriteCliUrl = ''; |
|
| 492 | + if ($this->config->getSystemValue('overwrite.cli.url', '') === '') { |
|
| 493 | + $suggestedOverwriteCliUrl = $this->request->getServerProtocol() . '://' . $this->request->getInsecureServerHost() . \OC::$WEBROOT; |
|
| 494 | + if (!$this->config->getSystemValue('config_is_read_only', false)) { |
|
| 495 | + // Set the overwrite URL when it was not set yet. |
|
| 496 | + $this->config->setSystemValue('overwrite.cli.url', $suggestedOverwriteCliUrl); |
|
| 497 | + $suggestedOverwriteCliUrl = ''; |
|
| 498 | + } |
|
| 499 | + } |
|
| 500 | + return $suggestedOverwriteCliUrl; |
|
| 501 | + } |
|
| 502 | + |
|
| 503 | + protected function getLastCronInfo(): array { |
|
| 504 | + $lastCronRun = $this->config->getAppValue('core', 'lastcron', 0); |
|
| 505 | + return [ |
|
| 506 | + 'diffInSeconds' => time() - $lastCronRun, |
|
| 507 | + 'relativeTime' => $this->dateTimeFormatter->formatTimeSpan($lastCronRun), |
|
| 508 | + 'backgroundJobsUrl' => $this->urlGenerator->linkToRoute('settings.AdminSettings.index', ['section' => 'server']) . '#backgroundjobs', |
|
| 509 | + ]; |
|
| 510 | + } |
|
| 511 | + |
|
| 512 | + protected function getCronErrors() { |
|
| 513 | + $errors = json_decode($this->config->getAppValue('core', 'cronErrors', ''), true); |
|
| 514 | + |
|
| 515 | + if (is_array($errors)) { |
|
| 516 | + return $errors; |
|
| 517 | + } |
|
| 518 | + |
|
| 519 | + return []; |
|
| 520 | + } |
|
| 521 | + |
|
| 522 | + protected function isPHPMailerUsed(): bool { |
|
| 523 | + return $this->config->getSystemValue('mail_smtpmode', 'smtp') === 'php'; |
|
| 524 | + } |
|
| 525 | + |
|
| 526 | + protected function hasOpcacheLoaded(): bool { |
|
| 527 | + return extension_loaded('Zend OPcache'); |
|
| 528 | + } |
|
| 529 | + |
|
| 530 | + /** |
|
| 531 | + * Iterates through the configured app roots and |
|
| 532 | + * tests if the subdirectories are owned by the same user than the current user. |
|
| 533 | + * |
|
| 534 | + * @return array |
|
| 535 | + */ |
|
| 536 | + protected function getAppDirsWithDifferentOwner(): array { |
|
| 537 | + $currentUser = posix_getuid(); |
|
| 538 | + $appDirsWithDifferentOwner = [[]]; |
|
| 539 | + |
|
| 540 | + foreach (OC::$APPSROOTS as $appRoot) { |
|
| 541 | + if ($appRoot['writable'] === true) { |
|
| 542 | + $appDirsWithDifferentOwner[] = $this->getAppDirsWithDifferentOwnerForAppRoot($currentUser, $appRoot); |
|
| 543 | + } |
|
| 544 | + } |
|
| 545 | + |
|
| 546 | + $appDirsWithDifferentOwner = array_merge(...$appDirsWithDifferentOwner); |
|
| 547 | + sort($appDirsWithDifferentOwner); |
|
| 548 | + |
|
| 549 | + return $appDirsWithDifferentOwner; |
|
| 550 | + } |
|
| 551 | + |
|
| 552 | + /** |
|
| 553 | + * Tests if the directories for one apps directory are writable by the current user. |
|
| 554 | + * |
|
| 555 | + * @param int $currentUser The current user |
|
| 556 | + * @param array $appRoot The app root config |
|
| 557 | + * @return string[] The none writable directory paths inside the app root |
|
| 558 | + */ |
|
| 559 | + private function getAppDirsWithDifferentOwnerForAppRoot(int $currentUser, array $appRoot): array { |
|
| 560 | + $appDirsWithDifferentOwner = []; |
|
| 561 | + $appsPath = $appRoot['path']; |
|
| 562 | + $appsDir = new DirectoryIterator($appRoot['path']); |
|
| 563 | + |
|
| 564 | + foreach ($appsDir as $fileInfo) { |
|
| 565 | + if ($fileInfo->isDir() && !$fileInfo->isDot()) { |
|
| 566 | + $absAppPath = $appsPath . DIRECTORY_SEPARATOR . $fileInfo->getFilename(); |
|
| 567 | + $appDirUser = fileowner($absAppPath); |
|
| 568 | + if ($appDirUser !== $currentUser) { |
|
| 569 | + $appDirsWithDifferentOwner[] = $absAppPath; |
|
| 570 | + } |
|
| 571 | + } |
|
| 572 | + } |
|
| 573 | + |
|
| 574 | + return $appDirsWithDifferentOwner; |
|
| 575 | + } |
|
| 576 | + |
|
| 577 | + /** |
|
| 578 | + * Checks for potential PHP modules that would improve the instance |
|
| 579 | + * |
|
| 580 | + * @return string[] A list of PHP modules that is recommended |
|
| 581 | + */ |
|
| 582 | + protected function hasRecommendedPHPModules(): array { |
|
| 583 | + $recommendedPHPModules = []; |
|
| 584 | + |
|
| 585 | + if (!extension_loaded('intl')) { |
|
| 586 | + $recommendedPHPModules[] = 'intl'; |
|
| 587 | + } |
|
| 588 | + |
|
| 589 | + if (!extension_loaded('bcmath')) { |
|
| 590 | + $recommendedPHPModules[] = 'bcmath'; |
|
| 591 | + } |
|
| 592 | + |
|
| 593 | + if (!extension_loaded('gmp')) { |
|
| 594 | + $recommendedPHPModules[] = 'gmp'; |
|
| 595 | + } |
|
| 596 | + |
|
| 597 | + if ($this->config->getAppValue('theming', 'enabled', 'no') === 'yes') { |
|
| 598 | + if (!extension_loaded('imagick')) { |
|
| 599 | + $recommendedPHPModules[] = 'imagick'; |
|
| 600 | + } |
|
| 601 | + } |
|
| 602 | + |
|
| 603 | + return $recommendedPHPModules; |
|
| 604 | + } |
|
| 605 | + |
|
| 606 | + protected function isMysqlUsedWithoutUTF8MB4(): bool { |
|
| 607 | + return ($this->config->getSystemValue('dbtype', 'sqlite') === 'mysql') && ($this->config->getSystemValue('mysql.utf8mb4', false) === false); |
|
| 608 | + } |
|
| 609 | + |
|
| 610 | + protected function hasBigIntConversionPendingColumns(): array { |
|
| 611 | + // copy of ConvertFilecacheBigInt::getColumnsByTable() |
|
| 612 | + $tables = [ |
|
| 613 | + 'activity' => ['activity_id', 'object_id'], |
|
| 614 | + 'activity_mq' => ['mail_id'], |
|
| 615 | + 'authtoken' => ['id'], |
|
| 616 | + 'bruteforce_attempts' => ['id'], |
|
| 617 | + 'filecache' => ['fileid', 'storage', 'parent', 'mimetype', 'mimepart', 'mtime', 'storage_mtime'], |
|
| 618 | + 'file_locks' => ['id'], |
|
| 619 | + 'jobs' => ['id'], |
|
| 620 | + 'mimetypes' => ['id'], |
|
| 621 | + 'mounts' => ['id', 'storage_id', 'root_id', 'mount_id'], |
|
| 622 | + 'storages' => ['numeric_id'], |
|
| 623 | + ]; |
|
| 624 | + |
|
| 625 | + $schema = new SchemaWrapper($this->db); |
|
| 626 | + $isSqlite = $this->db->getDatabasePlatform() instanceof SqlitePlatform; |
|
| 627 | + $pendingColumns = []; |
|
| 628 | + |
|
| 629 | + foreach ($tables as $tableName => $columns) { |
|
| 630 | + if (!$schema->hasTable($tableName)) { |
|
| 631 | + continue; |
|
| 632 | + } |
|
| 633 | + |
|
| 634 | + $table = $schema->getTable($tableName); |
|
| 635 | + foreach ($columns as $columnName) { |
|
| 636 | + $column = $table->getColumn($columnName); |
|
| 637 | + $isAutoIncrement = $column->getAutoincrement(); |
|
| 638 | + $isAutoIncrementOnSqlite = $isSqlite && $isAutoIncrement; |
|
| 639 | + if ($column->getType()->getName() !== Types::BIGINT && !$isAutoIncrementOnSqlite) { |
|
| 640 | + $pendingColumns[] = $tableName . '.' . $columnName; |
|
| 641 | + } |
|
| 642 | + } |
|
| 643 | + } |
|
| 644 | + |
|
| 645 | + return $pendingColumns; |
|
| 646 | + } |
|
| 647 | + |
|
| 648 | + protected function isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed(): bool { |
|
| 649 | + $objectStore = $this->config->getSystemValue('objectstore', null); |
|
| 650 | + $objectStoreMultibucket = $this->config->getSystemValue('objectstore_multibucket', null); |
|
| 651 | + |
|
| 652 | + if (!isset($objectStoreMultibucket) && !isset($objectStore)) { |
|
| 653 | + return true; |
|
| 654 | + } |
|
| 655 | + |
|
| 656 | + if (isset($objectStoreMultibucket['class']) && $objectStoreMultibucket['class'] !== 'OC\\Files\\ObjectStore\\S3') { |
|
| 657 | + return true; |
|
| 658 | + } |
|
| 659 | + |
|
| 660 | + if (isset($objectStore['class']) && $objectStore['class'] !== 'OC\\Files\\ObjectStore\\S3') { |
|
| 661 | + return true; |
|
| 662 | + } |
|
| 663 | + |
|
| 664 | + $tempPath = sys_get_temp_dir(); |
|
| 665 | + if (!is_dir($tempPath)) { |
|
| 666 | + $this->logger->error('Error while checking the temporary PHP path - it was not properly set to a directory. value: ' . $tempPath); |
|
| 667 | + return false; |
|
| 668 | + } |
|
| 669 | + $freeSpaceInTemp = disk_free_space($tempPath); |
|
| 670 | + if ($freeSpaceInTemp === false) { |
|
| 671 | + $this->logger->error('Error while checking the available disk space of temporary PHP path - no free disk space returned. temporary path: ' . $tempPath); |
|
| 672 | + return false; |
|
| 673 | + } |
|
| 674 | + |
|
| 675 | + $freeSpaceInTempInGB = $freeSpaceInTemp / 1024 / 1024 / 1024; |
|
| 676 | + if ($freeSpaceInTempInGB > 50) { |
|
| 677 | + return true; |
|
| 678 | + } |
|
| 679 | + |
|
| 680 | + $this->logger->warning('Checking the available space in the temporary path resulted in ' . round($freeSpaceInTempInGB, 1) . ' GB instead of the recommended 50GB. Path: ' . $tempPath); |
|
| 681 | + return false; |
|
| 682 | + } |
|
| 683 | + |
|
| 684 | + /** |
|
| 685 | + * @return DataResponse |
|
| 686 | + */ |
|
| 687 | + public function check() { |
|
| 688 | + $phpDefaultCharset = new PhpDefaultCharset(); |
|
| 689 | + $phpOutputBuffering = new PhpOutputBuffering(); |
|
| 690 | + return new DataResponse( |
|
| 691 | + [ |
|
| 692 | + 'isGetenvServerWorking' => !empty(getenv('PATH')), |
|
| 693 | + 'isReadOnlyConfig' => $this->isReadOnlyConfig(), |
|
| 694 | + 'hasValidTransactionIsolationLevel' => $this->hasValidTransactionIsolationLevel(), |
|
| 695 | + 'hasFileinfoInstalled' => $this->hasFileinfoInstalled(), |
|
| 696 | + 'hasWorkingFileLocking' => $this->hasWorkingFileLocking(), |
|
| 697 | + 'suggestedOverwriteCliURL' => $this->getSuggestedOverwriteCliURL(), |
|
| 698 | + 'cronInfo' => $this->getLastCronInfo(), |
|
| 699 | + 'cronErrors' => $this->getCronErrors(), |
|
| 700 | + 'serverHasInternetConnectionProblems' => $this->hasInternetConnectivityProblems(), |
|
| 701 | + 'isMemcacheConfigured' => $this->isMemcacheConfigured(), |
|
| 702 | + 'memcacheDocs' => $this->urlGenerator->linkToDocs('admin-performance'), |
|
| 703 | + 'isRandomnessSecure' => $this->isRandomnessSecure(), |
|
| 704 | + 'securityDocs' => $this->urlGenerator->linkToDocs('admin-security'), |
|
| 705 | + 'isUsedTlsLibOutdated' => $this->isUsedTlsLibOutdated(), |
|
| 706 | + 'phpSupported' => $this->isPhpSupported(), |
|
| 707 | + 'forwardedForHeadersWorking' => $this->forwardedForHeadersWorking(), |
|
| 708 | + 'reverseProxyDocs' => $this->urlGenerator->linkToDocs('admin-reverse-proxy'), |
|
| 709 | + 'isCorrectMemcachedPHPModuleInstalled' => $this->isCorrectMemcachedPHPModuleInstalled(), |
|
| 710 | + 'hasPassedCodeIntegrityCheck' => $this->checker->hasPassedCheck(), |
|
| 711 | + 'codeIntegrityCheckerDocumentation' => $this->urlGenerator->linkToDocs('admin-code-integrity'), |
|
| 712 | + 'isOpcacheProperlySetup' => $this->isOpcacheProperlySetup(), |
|
| 713 | + 'hasOpcacheLoaded' => $this->hasOpcacheLoaded(), |
|
| 714 | + 'phpOpcacheDocumentation' => $this->urlGenerator->linkToDocs('admin-php-opcache'), |
|
| 715 | + 'isSettimelimitAvailable' => $this->isSettimelimitAvailable(), |
|
| 716 | + 'hasFreeTypeSupport' => $this->hasFreeTypeSupport(), |
|
| 717 | + 'missingIndexes' => $this->hasMissingIndexes(), |
|
| 718 | + 'missingColumns' => $this->hasMissingColumns(), |
|
| 719 | + 'isSqliteUsed' => $this->isSqliteUsed(), |
|
| 720 | + 'databaseConversionDocumentation' => $this->urlGenerator->linkToDocs('admin-db-conversion'), |
|
| 721 | + 'isPHPMailerUsed' => $this->isPHPMailerUsed(), |
|
| 722 | + 'mailSettingsDocumentation' => $this->urlGenerator->getAbsoluteURL('index.php/settings/admin'), |
|
| 723 | + 'isMemoryLimitSufficient' => $this->memoryInfo->isMemoryLimitSufficient(), |
|
| 724 | + 'appDirsWithDifferentOwner' => $this->getAppDirsWithDifferentOwner(), |
|
| 725 | + 'recommendedPHPModules' => $this->hasRecommendedPHPModules(), |
|
| 726 | + 'pendingBigIntConversionColumns' => $this->hasBigIntConversionPendingColumns(), |
|
| 727 | + 'isMysqlUsedWithoutUTF8MB4' => $this->isMysqlUsedWithoutUTF8MB4(), |
|
| 728 | + 'isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed' => $this->isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed(), |
|
| 729 | + 'reverseProxyGeneratedURL' => $this->urlGenerator->getAbsoluteURL('index.php'), |
|
| 730 | + PhpDefaultCharset::class => ['pass' => $phpDefaultCharset->run(), 'description' => $phpDefaultCharset->description(), 'severity' => $phpDefaultCharset->severity()], |
|
| 731 | + PhpOutputBuffering::class => ['pass' => $phpOutputBuffering->run(), 'description' => $phpOutputBuffering->description(), 'severity' => $phpOutputBuffering->severity()], |
|
| 732 | + ] |
|
| 733 | + ); |
|
| 734 | + } |
|
| 735 | 735 | } |
@@ -6,76 +6,76 @@ |
||
| 6 | 6 | |
| 7 | 7 | class ComposerStaticInitSettings |
| 8 | 8 | { |
| 9 | - public static $prefixLengthsPsr4 = array ( |
|
| 9 | + public static $prefixLengthsPsr4 = array( |
|
| 10 | 10 | 'O' => |
| 11 | - array ( |
|
| 11 | + array( |
|
| 12 | 12 | 'OCA\\Settings\\' => 13, |
| 13 | 13 | ), |
| 14 | 14 | ); |
| 15 | 15 | |
| 16 | - public static $prefixDirsPsr4 = array ( |
|
| 16 | + public static $prefixDirsPsr4 = array( |
|
| 17 | 17 | 'OCA\\Settings\\' => |
| 18 | - array ( |
|
| 19 | - 0 => __DIR__ . '/..' . '/../lib', |
|
| 18 | + array( |
|
| 19 | + 0 => __DIR__.'/..'.'/../lib', |
|
| 20 | 20 | ), |
| 21 | 21 | ); |
| 22 | 22 | |
| 23 | - public static $classMap = array ( |
|
| 24 | - 'OCA\\Settings\\Activity\\GroupProvider' => __DIR__ . '/..' . '/../lib/Activity/GroupProvider.php', |
|
| 25 | - 'OCA\\Settings\\Activity\\GroupSetting' => __DIR__ . '/..' . '/../lib/Activity/GroupSetting.php', |
|
| 26 | - 'OCA\\Settings\\Activity\\Provider' => __DIR__ . '/..' . '/../lib/Activity/Provider.php', |
|
| 27 | - 'OCA\\Settings\\Activity\\SecurityFilter' => __DIR__ . '/..' . '/../lib/Activity/SecurityFilter.php', |
|
| 28 | - 'OCA\\Settings\\Activity\\SecurityProvider' => __DIR__ . '/..' . '/../lib/Activity/SecurityProvider.php', |
|
| 29 | - 'OCA\\Settings\\Activity\\SecuritySetting' => __DIR__ . '/..' . '/../lib/Activity/SecuritySetting.php', |
|
| 30 | - 'OCA\\Settings\\Activity\\Setting' => __DIR__ . '/..' . '/../lib/Activity/Setting.php', |
|
| 31 | - 'OCA\\Settings\\AppInfo\\Application' => __DIR__ . '/..' . '/../lib/AppInfo/Application.php', |
|
| 32 | - 'OCA\\Settings\\BackgroundJobs\\VerifyUserData' => __DIR__ . '/..' . '/../lib/BackgroundJobs/VerifyUserData.php', |
|
| 33 | - 'OCA\\Settings\\Controller\\AdminSettingsController' => __DIR__ . '/..' . '/../lib/Controller/AdminSettingsController.php', |
|
| 34 | - 'OCA\\Settings\\Controller\\AppSettingsController' => __DIR__ . '/..' . '/../lib/Controller/AppSettingsController.php', |
|
| 35 | - 'OCA\\Settings\\Controller\\AuthSettingsController' => __DIR__ . '/..' . '/../lib/Controller/AuthSettingsController.php', |
|
| 36 | - 'OCA\\Settings\\Controller\\ChangePasswordController' => __DIR__ . '/..' . '/../lib/Controller/ChangePasswordController.php', |
|
| 37 | - 'OCA\\Settings\\Controller\\CheckSetupController' => __DIR__ . '/..' . '/../lib/Controller/CheckSetupController.php', |
|
| 38 | - 'OCA\\Settings\\Controller\\CommonSettingsTrait' => __DIR__ . '/..' . '/../lib/Controller/CommonSettingsTrait.php', |
|
| 39 | - 'OCA\\Settings\\Controller\\HelpController' => __DIR__ . '/..' . '/../lib/Controller/HelpController.php', |
|
| 40 | - 'OCA\\Settings\\Controller\\LogSettingsController' => __DIR__ . '/..' . '/../lib/Controller/LogSettingsController.php', |
|
| 41 | - 'OCA\\Settings\\Controller\\MailSettingsController' => __DIR__ . '/..' . '/../lib/Controller/MailSettingsController.php', |
|
| 42 | - 'OCA\\Settings\\Controller\\PersonalSettingsController' => __DIR__ . '/..' . '/../lib/Controller/PersonalSettingsController.php', |
|
| 43 | - 'OCA\\Settings\\Controller\\TwoFactorSettingsController' => __DIR__ . '/..' . '/../lib/Controller/TwoFactorSettingsController.php', |
|
| 44 | - 'OCA\\Settings\\Controller\\UsersController' => __DIR__ . '/..' . '/../lib/Controller/UsersController.php', |
|
| 45 | - 'OCA\\Settings\\Controller\\WebAuthnController' => __DIR__ . '/..' . '/../lib/Controller/WebAuthnController.php', |
|
| 46 | - 'OCA\\Settings\\Hooks' => __DIR__ . '/..' . '/../lib/Hooks.php', |
|
| 47 | - 'OCA\\Settings\\Mailer\\NewUserMailHelper' => __DIR__ . '/..' . '/../lib/Mailer/NewUserMailHelper.php', |
|
| 48 | - 'OCA\\Settings\\Middleware\\SubadminMiddleware' => __DIR__ . '/..' . '/../lib/Middleware/SubadminMiddleware.php', |
|
| 49 | - 'OCA\\Settings\\Search\\AppSearch' => __DIR__ . '/..' . '/../lib/Search/AppSearch.php', |
|
| 50 | - 'OCA\\Settings\\Search\\SectionSearch' => __DIR__ . '/..' . '/../lib/Search/SectionSearch.php', |
|
| 51 | - 'OCA\\Settings\\Sections\\Admin\\Additional' => __DIR__ . '/..' . '/../lib/Sections/Admin/Additional.php', |
|
| 52 | - 'OCA\\Settings\\Sections\\Admin\\Groupware' => __DIR__ . '/..' . '/../lib/Sections/Admin/Groupware.php', |
|
| 53 | - 'OCA\\Settings\\Sections\\Admin\\Overview' => __DIR__ . '/..' . '/../lib/Sections/Admin/Overview.php', |
|
| 54 | - 'OCA\\Settings\\Sections\\Admin\\Security' => __DIR__ . '/..' . '/../lib/Sections/Admin/Security.php', |
|
| 55 | - 'OCA\\Settings\\Sections\\Admin\\Server' => __DIR__ . '/..' . '/../lib/Sections/Admin/Server.php', |
|
| 56 | - 'OCA\\Settings\\Sections\\Admin\\Sharing' => __DIR__ . '/..' . '/../lib/Sections/Admin/Sharing.php', |
|
| 57 | - 'OCA\\Settings\\Sections\\Personal\\PersonalInfo' => __DIR__ . '/..' . '/../lib/Sections/Personal/PersonalInfo.php', |
|
| 58 | - 'OCA\\Settings\\Sections\\Personal\\Security' => __DIR__ . '/..' . '/../lib/Sections/Personal/Security.php', |
|
| 59 | - 'OCA\\Settings\\Sections\\Personal\\SyncClients' => __DIR__ . '/..' . '/../lib/Sections/Personal/SyncClients.php', |
|
| 60 | - 'OCA\\Settings\\Settings\\Admin\\Mail' => __DIR__ . '/..' . '/../lib/Settings/Admin/Mail.php', |
|
| 61 | - 'OCA\\Settings\\Settings\\Admin\\Overview' => __DIR__ . '/..' . '/../lib/Settings/Admin/Overview.php', |
|
| 62 | - 'OCA\\Settings\\Settings\\Admin\\Security' => __DIR__ . '/..' . '/../lib/Settings/Admin/Security.php', |
|
| 63 | - 'OCA\\Settings\\Settings\\Admin\\Server' => __DIR__ . '/..' . '/../lib/Settings/Admin/Server.php', |
|
| 64 | - 'OCA\\Settings\\Settings\\Admin\\Sharing' => __DIR__ . '/..' . '/../lib/Settings/Admin/Sharing.php', |
|
| 65 | - 'OCA\\Settings\\Settings\\Personal\\Additional' => __DIR__ . '/..' . '/../lib/Settings/Personal/Additional.php', |
|
| 66 | - 'OCA\\Settings\\Settings\\Personal\\PersonalInfo' => __DIR__ . '/..' . '/../lib/Settings/Personal/PersonalInfo.php', |
|
| 67 | - 'OCA\\Settings\\Settings\\Personal\\Security\\Authtokens' => __DIR__ . '/..' . '/../lib/Settings/Personal/Security/Authtokens.php', |
|
| 68 | - 'OCA\\Settings\\Settings\\Personal\\Security\\Password' => __DIR__ . '/..' . '/../lib/Settings/Personal/Security/Password.php', |
|
| 69 | - 'OCA\\Settings\\Settings\\Personal\\Security\\TwoFactor' => __DIR__ . '/..' . '/../lib/Settings/Personal/Security/TwoFactor.php', |
|
| 70 | - 'OCA\\Settings\\Settings\\Personal\\Security\\WebAuthn' => __DIR__ . '/..' . '/../lib/Settings/Personal/Security/WebAuthn.php', |
|
| 71 | - 'OCA\\Settings\\Settings\\Personal\\ServerDevNotice' => __DIR__ . '/..' . '/../lib/Settings/Personal/ServerDevNotice.php', |
|
| 72 | - 'OCA\\Settings\\SetupChecks\\PhpDefaultCharset' => __DIR__ . '/..' . '/../lib/SetupChecks/PhpDefaultCharset.php', |
|
| 73 | - 'OCA\\Settings\\SetupChecks\\PhpOutputBuffering' => __DIR__ . '/..' . '/../lib/SetupChecks/PhpOutputBuffering.php', |
|
| 23 | + public static $classMap = array( |
|
| 24 | + 'OCA\\Settings\\Activity\\GroupProvider' => __DIR__.'/..'.'/../lib/Activity/GroupProvider.php', |
|
| 25 | + 'OCA\\Settings\\Activity\\GroupSetting' => __DIR__.'/..'.'/../lib/Activity/GroupSetting.php', |
|
| 26 | + 'OCA\\Settings\\Activity\\Provider' => __DIR__.'/..'.'/../lib/Activity/Provider.php', |
|
| 27 | + 'OCA\\Settings\\Activity\\SecurityFilter' => __DIR__.'/..'.'/../lib/Activity/SecurityFilter.php', |
|
| 28 | + 'OCA\\Settings\\Activity\\SecurityProvider' => __DIR__.'/..'.'/../lib/Activity/SecurityProvider.php', |
|
| 29 | + 'OCA\\Settings\\Activity\\SecuritySetting' => __DIR__.'/..'.'/../lib/Activity/SecuritySetting.php', |
|
| 30 | + 'OCA\\Settings\\Activity\\Setting' => __DIR__.'/..'.'/../lib/Activity/Setting.php', |
|
| 31 | + 'OCA\\Settings\\AppInfo\\Application' => __DIR__.'/..'.'/../lib/AppInfo/Application.php', |
|
| 32 | + 'OCA\\Settings\\BackgroundJobs\\VerifyUserData' => __DIR__.'/..'.'/../lib/BackgroundJobs/VerifyUserData.php', |
|
| 33 | + 'OCA\\Settings\\Controller\\AdminSettingsController' => __DIR__.'/..'.'/../lib/Controller/AdminSettingsController.php', |
|
| 34 | + 'OCA\\Settings\\Controller\\AppSettingsController' => __DIR__.'/..'.'/../lib/Controller/AppSettingsController.php', |
|
| 35 | + 'OCA\\Settings\\Controller\\AuthSettingsController' => __DIR__.'/..'.'/../lib/Controller/AuthSettingsController.php', |
|
| 36 | + 'OCA\\Settings\\Controller\\ChangePasswordController' => __DIR__.'/..'.'/../lib/Controller/ChangePasswordController.php', |
|
| 37 | + 'OCA\\Settings\\Controller\\CheckSetupController' => __DIR__.'/..'.'/../lib/Controller/CheckSetupController.php', |
|
| 38 | + 'OCA\\Settings\\Controller\\CommonSettingsTrait' => __DIR__.'/..'.'/../lib/Controller/CommonSettingsTrait.php', |
|
| 39 | + 'OCA\\Settings\\Controller\\HelpController' => __DIR__.'/..'.'/../lib/Controller/HelpController.php', |
|
| 40 | + 'OCA\\Settings\\Controller\\LogSettingsController' => __DIR__.'/..'.'/../lib/Controller/LogSettingsController.php', |
|
| 41 | + 'OCA\\Settings\\Controller\\MailSettingsController' => __DIR__.'/..'.'/../lib/Controller/MailSettingsController.php', |
|
| 42 | + 'OCA\\Settings\\Controller\\PersonalSettingsController' => __DIR__.'/..'.'/../lib/Controller/PersonalSettingsController.php', |
|
| 43 | + 'OCA\\Settings\\Controller\\TwoFactorSettingsController' => __DIR__.'/..'.'/../lib/Controller/TwoFactorSettingsController.php', |
|
| 44 | + 'OCA\\Settings\\Controller\\UsersController' => __DIR__.'/..'.'/../lib/Controller/UsersController.php', |
|
| 45 | + 'OCA\\Settings\\Controller\\WebAuthnController' => __DIR__.'/..'.'/../lib/Controller/WebAuthnController.php', |
|
| 46 | + 'OCA\\Settings\\Hooks' => __DIR__.'/..'.'/../lib/Hooks.php', |
|
| 47 | + 'OCA\\Settings\\Mailer\\NewUserMailHelper' => __DIR__.'/..'.'/../lib/Mailer/NewUserMailHelper.php', |
|
| 48 | + 'OCA\\Settings\\Middleware\\SubadminMiddleware' => __DIR__.'/..'.'/../lib/Middleware/SubadminMiddleware.php', |
|
| 49 | + 'OCA\\Settings\\Search\\AppSearch' => __DIR__.'/..'.'/../lib/Search/AppSearch.php', |
|
| 50 | + 'OCA\\Settings\\Search\\SectionSearch' => __DIR__.'/..'.'/../lib/Search/SectionSearch.php', |
|
| 51 | + 'OCA\\Settings\\Sections\\Admin\\Additional' => __DIR__.'/..'.'/../lib/Sections/Admin/Additional.php', |
|
| 52 | + 'OCA\\Settings\\Sections\\Admin\\Groupware' => __DIR__.'/..'.'/../lib/Sections/Admin/Groupware.php', |
|
| 53 | + 'OCA\\Settings\\Sections\\Admin\\Overview' => __DIR__.'/..'.'/../lib/Sections/Admin/Overview.php', |
|
| 54 | + 'OCA\\Settings\\Sections\\Admin\\Security' => __DIR__.'/..'.'/../lib/Sections/Admin/Security.php', |
|
| 55 | + 'OCA\\Settings\\Sections\\Admin\\Server' => __DIR__.'/..'.'/../lib/Sections/Admin/Server.php', |
|
| 56 | + 'OCA\\Settings\\Sections\\Admin\\Sharing' => __DIR__.'/..'.'/../lib/Sections/Admin/Sharing.php', |
|
| 57 | + 'OCA\\Settings\\Sections\\Personal\\PersonalInfo' => __DIR__.'/..'.'/../lib/Sections/Personal/PersonalInfo.php', |
|
| 58 | + 'OCA\\Settings\\Sections\\Personal\\Security' => __DIR__.'/..'.'/../lib/Sections/Personal/Security.php', |
|
| 59 | + 'OCA\\Settings\\Sections\\Personal\\SyncClients' => __DIR__.'/..'.'/../lib/Sections/Personal/SyncClients.php', |
|
| 60 | + 'OCA\\Settings\\Settings\\Admin\\Mail' => __DIR__.'/..'.'/../lib/Settings/Admin/Mail.php', |
|
| 61 | + 'OCA\\Settings\\Settings\\Admin\\Overview' => __DIR__.'/..'.'/../lib/Settings/Admin/Overview.php', |
|
| 62 | + 'OCA\\Settings\\Settings\\Admin\\Security' => __DIR__.'/..'.'/../lib/Settings/Admin/Security.php', |
|
| 63 | + 'OCA\\Settings\\Settings\\Admin\\Server' => __DIR__.'/..'.'/../lib/Settings/Admin/Server.php', |
|
| 64 | + 'OCA\\Settings\\Settings\\Admin\\Sharing' => __DIR__.'/..'.'/../lib/Settings/Admin/Sharing.php', |
|
| 65 | + 'OCA\\Settings\\Settings\\Personal\\Additional' => __DIR__.'/..'.'/../lib/Settings/Personal/Additional.php', |
|
| 66 | + 'OCA\\Settings\\Settings\\Personal\\PersonalInfo' => __DIR__.'/..'.'/../lib/Settings/Personal/PersonalInfo.php', |
|
| 67 | + 'OCA\\Settings\\Settings\\Personal\\Security\\Authtokens' => __DIR__.'/..'.'/../lib/Settings/Personal/Security/Authtokens.php', |
|
| 68 | + 'OCA\\Settings\\Settings\\Personal\\Security\\Password' => __DIR__.'/..'.'/../lib/Settings/Personal/Security/Password.php', |
|
| 69 | + 'OCA\\Settings\\Settings\\Personal\\Security\\TwoFactor' => __DIR__.'/..'.'/../lib/Settings/Personal/Security/TwoFactor.php', |
|
| 70 | + 'OCA\\Settings\\Settings\\Personal\\Security\\WebAuthn' => __DIR__.'/..'.'/../lib/Settings/Personal/Security/WebAuthn.php', |
|
| 71 | + 'OCA\\Settings\\Settings\\Personal\\ServerDevNotice' => __DIR__.'/..'.'/../lib/Settings/Personal/ServerDevNotice.php', |
|
| 72 | + 'OCA\\Settings\\SetupChecks\\PhpDefaultCharset' => __DIR__.'/..'.'/../lib/SetupChecks/PhpDefaultCharset.php', |
|
| 73 | + 'OCA\\Settings\\SetupChecks\\PhpOutputBuffering' => __DIR__.'/..'.'/../lib/SetupChecks/PhpOutputBuffering.php', |
|
| 74 | 74 | ); |
| 75 | 75 | |
| 76 | 76 | public static function getInitializer(ClassLoader $loader) |
| 77 | 77 | { |
| 78 | - return \Closure::bind(function () use ($loader) { |
|
| 78 | + return \Closure::bind(function() use ($loader) { |
|
| 79 | 79 | $loader->prefixLengthsPsr4 = ComposerStaticInitSettings::$prefixLengthsPsr4; |
| 80 | 80 | $loader->prefixDirsPsr4 = ComposerStaticInitSettings::$prefixDirsPsr4; |
| 81 | 81 | $loader->classMap = ComposerStaticInitSettings::$classMap; |
@@ -6,54 +6,54 @@ |
||
| 6 | 6 | $baseDir = $vendorDir; |
| 7 | 7 | |
| 8 | 8 | return array( |
| 9 | - 'OCA\\Settings\\Activity\\GroupProvider' => $baseDir . '/../lib/Activity/GroupProvider.php', |
|
| 10 | - 'OCA\\Settings\\Activity\\GroupSetting' => $baseDir . '/../lib/Activity/GroupSetting.php', |
|
| 11 | - 'OCA\\Settings\\Activity\\Provider' => $baseDir . '/../lib/Activity/Provider.php', |
|
| 12 | - 'OCA\\Settings\\Activity\\SecurityFilter' => $baseDir . '/../lib/Activity/SecurityFilter.php', |
|
| 13 | - 'OCA\\Settings\\Activity\\SecurityProvider' => $baseDir . '/../lib/Activity/SecurityProvider.php', |
|
| 14 | - 'OCA\\Settings\\Activity\\SecuritySetting' => $baseDir . '/../lib/Activity/SecuritySetting.php', |
|
| 15 | - 'OCA\\Settings\\Activity\\Setting' => $baseDir . '/../lib/Activity/Setting.php', |
|
| 16 | - 'OCA\\Settings\\AppInfo\\Application' => $baseDir . '/../lib/AppInfo/Application.php', |
|
| 17 | - 'OCA\\Settings\\BackgroundJobs\\VerifyUserData' => $baseDir . '/../lib/BackgroundJobs/VerifyUserData.php', |
|
| 18 | - 'OCA\\Settings\\Controller\\AdminSettingsController' => $baseDir . '/../lib/Controller/AdminSettingsController.php', |
|
| 19 | - 'OCA\\Settings\\Controller\\AppSettingsController' => $baseDir . '/../lib/Controller/AppSettingsController.php', |
|
| 20 | - 'OCA\\Settings\\Controller\\AuthSettingsController' => $baseDir . '/../lib/Controller/AuthSettingsController.php', |
|
| 21 | - 'OCA\\Settings\\Controller\\ChangePasswordController' => $baseDir . '/../lib/Controller/ChangePasswordController.php', |
|
| 22 | - 'OCA\\Settings\\Controller\\CheckSetupController' => $baseDir . '/../lib/Controller/CheckSetupController.php', |
|
| 23 | - 'OCA\\Settings\\Controller\\CommonSettingsTrait' => $baseDir . '/../lib/Controller/CommonSettingsTrait.php', |
|
| 24 | - 'OCA\\Settings\\Controller\\HelpController' => $baseDir . '/../lib/Controller/HelpController.php', |
|
| 25 | - 'OCA\\Settings\\Controller\\LogSettingsController' => $baseDir . '/../lib/Controller/LogSettingsController.php', |
|
| 26 | - 'OCA\\Settings\\Controller\\MailSettingsController' => $baseDir . '/../lib/Controller/MailSettingsController.php', |
|
| 27 | - 'OCA\\Settings\\Controller\\PersonalSettingsController' => $baseDir . '/../lib/Controller/PersonalSettingsController.php', |
|
| 28 | - 'OCA\\Settings\\Controller\\TwoFactorSettingsController' => $baseDir . '/../lib/Controller/TwoFactorSettingsController.php', |
|
| 29 | - 'OCA\\Settings\\Controller\\UsersController' => $baseDir . '/../lib/Controller/UsersController.php', |
|
| 30 | - 'OCA\\Settings\\Controller\\WebAuthnController' => $baseDir . '/../lib/Controller/WebAuthnController.php', |
|
| 31 | - 'OCA\\Settings\\Hooks' => $baseDir . '/../lib/Hooks.php', |
|
| 32 | - 'OCA\\Settings\\Mailer\\NewUserMailHelper' => $baseDir . '/../lib/Mailer/NewUserMailHelper.php', |
|
| 33 | - 'OCA\\Settings\\Middleware\\SubadminMiddleware' => $baseDir . '/../lib/Middleware/SubadminMiddleware.php', |
|
| 34 | - 'OCA\\Settings\\Search\\AppSearch' => $baseDir . '/../lib/Search/AppSearch.php', |
|
| 35 | - 'OCA\\Settings\\Search\\SectionSearch' => $baseDir . '/../lib/Search/SectionSearch.php', |
|
| 36 | - 'OCA\\Settings\\Sections\\Admin\\Additional' => $baseDir . '/../lib/Sections/Admin/Additional.php', |
|
| 37 | - 'OCA\\Settings\\Sections\\Admin\\Groupware' => $baseDir . '/../lib/Sections/Admin/Groupware.php', |
|
| 38 | - 'OCA\\Settings\\Sections\\Admin\\Overview' => $baseDir . '/../lib/Sections/Admin/Overview.php', |
|
| 39 | - 'OCA\\Settings\\Sections\\Admin\\Security' => $baseDir . '/../lib/Sections/Admin/Security.php', |
|
| 40 | - 'OCA\\Settings\\Sections\\Admin\\Server' => $baseDir . '/../lib/Sections/Admin/Server.php', |
|
| 41 | - 'OCA\\Settings\\Sections\\Admin\\Sharing' => $baseDir . '/../lib/Sections/Admin/Sharing.php', |
|
| 42 | - 'OCA\\Settings\\Sections\\Personal\\PersonalInfo' => $baseDir . '/../lib/Sections/Personal/PersonalInfo.php', |
|
| 43 | - 'OCA\\Settings\\Sections\\Personal\\Security' => $baseDir . '/../lib/Sections/Personal/Security.php', |
|
| 44 | - 'OCA\\Settings\\Sections\\Personal\\SyncClients' => $baseDir . '/../lib/Sections/Personal/SyncClients.php', |
|
| 45 | - 'OCA\\Settings\\Settings\\Admin\\Mail' => $baseDir . '/../lib/Settings/Admin/Mail.php', |
|
| 46 | - 'OCA\\Settings\\Settings\\Admin\\Overview' => $baseDir . '/../lib/Settings/Admin/Overview.php', |
|
| 47 | - 'OCA\\Settings\\Settings\\Admin\\Security' => $baseDir . '/../lib/Settings/Admin/Security.php', |
|
| 48 | - 'OCA\\Settings\\Settings\\Admin\\Server' => $baseDir . '/../lib/Settings/Admin/Server.php', |
|
| 49 | - 'OCA\\Settings\\Settings\\Admin\\Sharing' => $baseDir . '/../lib/Settings/Admin/Sharing.php', |
|
| 50 | - 'OCA\\Settings\\Settings\\Personal\\Additional' => $baseDir . '/../lib/Settings/Personal/Additional.php', |
|
| 51 | - 'OCA\\Settings\\Settings\\Personal\\PersonalInfo' => $baseDir . '/../lib/Settings/Personal/PersonalInfo.php', |
|
| 52 | - 'OCA\\Settings\\Settings\\Personal\\Security\\Authtokens' => $baseDir . '/../lib/Settings/Personal/Security/Authtokens.php', |
|
| 53 | - 'OCA\\Settings\\Settings\\Personal\\Security\\Password' => $baseDir . '/../lib/Settings/Personal/Security/Password.php', |
|
| 54 | - 'OCA\\Settings\\Settings\\Personal\\Security\\TwoFactor' => $baseDir . '/../lib/Settings/Personal/Security/TwoFactor.php', |
|
| 55 | - 'OCA\\Settings\\Settings\\Personal\\Security\\WebAuthn' => $baseDir . '/../lib/Settings/Personal/Security/WebAuthn.php', |
|
| 56 | - 'OCA\\Settings\\Settings\\Personal\\ServerDevNotice' => $baseDir . '/../lib/Settings/Personal/ServerDevNotice.php', |
|
| 57 | - 'OCA\\Settings\\SetupChecks\\PhpDefaultCharset' => $baseDir . '/../lib/SetupChecks/PhpDefaultCharset.php', |
|
| 58 | - 'OCA\\Settings\\SetupChecks\\PhpOutputBuffering' => $baseDir . '/../lib/SetupChecks/PhpOutputBuffering.php', |
|
| 9 | + 'OCA\\Settings\\Activity\\GroupProvider' => $baseDir.'/../lib/Activity/GroupProvider.php', |
|
| 10 | + 'OCA\\Settings\\Activity\\GroupSetting' => $baseDir.'/../lib/Activity/GroupSetting.php', |
|
| 11 | + 'OCA\\Settings\\Activity\\Provider' => $baseDir.'/../lib/Activity/Provider.php', |
|
| 12 | + 'OCA\\Settings\\Activity\\SecurityFilter' => $baseDir.'/../lib/Activity/SecurityFilter.php', |
|
| 13 | + 'OCA\\Settings\\Activity\\SecurityProvider' => $baseDir.'/../lib/Activity/SecurityProvider.php', |
|
| 14 | + 'OCA\\Settings\\Activity\\SecuritySetting' => $baseDir.'/../lib/Activity/SecuritySetting.php', |
|
| 15 | + 'OCA\\Settings\\Activity\\Setting' => $baseDir.'/../lib/Activity/Setting.php', |
|
| 16 | + 'OCA\\Settings\\AppInfo\\Application' => $baseDir.'/../lib/AppInfo/Application.php', |
|
| 17 | + 'OCA\\Settings\\BackgroundJobs\\VerifyUserData' => $baseDir.'/../lib/BackgroundJobs/VerifyUserData.php', |
|
| 18 | + 'OCA\\Settings\\Controller\\AdminSettingsController' => $baseDir.'/../lib/Controller/AdminSettingsController.php', |
|
| 19 | + 'OCA\\Settings\\Controller\\AppSettingsController' => $baseDir.'/../lib/Controller/AppSettingsController.php', |
|
| 20 | + 'OCA\\Settings\\Controller\\AuthSettingsController' => $baseDir.'/../lib/Controller/AuthSettingsController.php', |
|
| 21 | + 'OCA\\Settings\\Controller\\ChangePasswordController' => $baseDir.'/../lib/Controller/ChangePasswordController.php', |
|
| 22 | + 'OCA\\Settings\\Controller\\CheckSetupController' => $baseDir.'/../lib/Controller/CheckSetupController.php', |
|
| 23 | + 'OCA\\Settings\\Controller\\CommonSettingsTrait' => $baseDir.'/../lib/Controller/CommonSettingsTrait.php', |
|
| 24 | + 'OCA\\Settings\\Controller\\HelpController' => $baseDir.'/../lib/Controller/HelpController.php', |
|
| 25 | + 'OCA\\Settings\\Controller\\LogSettingsController' => $baseDir.'/../lib/Controller/LogSettingsController.php', |
|
| 26 | + 'OCA\\Settings\\Controller\\MailSettingsController' => $baseDir.'/../lib/Controller/MailSettingsController.php', |
|
| 27 | + 'OCA\\Settings\\Controller\\PersonalSettingsController' => $baseDir.'/../lib/Controller/PersonalSettingsController.php', |
|
| 28 | + 'OCA\\Settings\\Controller\\TwoFactorSettingsController' => $baseDir.'/../lib/Controller/TwoFactorSettingsController.php', |
|
| 29 | + 'OCA\\Settings\\Controller\\UsersController' => $baseDir.'/../lib/Controller/UsersController.php', |
|
| 30 | + 'OCA\\Settings\\Controller\\WebAuthnController' => $baseDir.'/../lib/Controller/WebAuthnController.php', |
|
| 31 | + 'OCA\\Settings\\Hooks' => $baseDir.'/../lib/Hooks.php', |
|
| 32 | + 'OCA\\Settings\\Mailer\\NewUserMailHelper' => $baseDir.'/../lib/Mailer/NewUserMailHelper.php', |
|
| 33 | + 'OCA\\Settings\\Middleware\\SubadminMiddleware' => $baseDir.'/../lib/Middleware/SubadminMiddleware.php', |
|
| 34 | + 'OCA\\Settings\\Search\\AppSearch' => $baseDir.'/../lib/Search/AppSearch.php', |
|
| 35 | + 'OCA\\Settings\\Search\\SectionSearch' => $baseDir.'/../lib/Search/SectionSearch.php', |
|
| 36 | + 'OCA\\Settings\\Sections\\Admin\\Additional' => $baseDir.'/../lib/Sections/Admin/Additional.php', |
|
| 37 | + 'OCA\\Settings\\Sections\\Admin\\Groupware' => $baseDir.'/../lib/Sections/Admin/Groupware.php', |
|
| 38 | + 'OCA\\Settings\\Sections\\Admin\\Overview' => $baseDir.'/../lib/Sections/Admin/Overview.php', |
|
| 39 | + 'OCA\\Settings\\Sections\\Admin\\Security' => $baseDir.'/../lib/Sections/Admin/Security.php', |
|
| 40 | + 'OCA\\Settings\\Sections\\Admin\\Server' => $baseDir.'/../lib/Sections/Admin/Server.php', |
|
| 41 | + 'OCA\\Settings\\Sections\\Admin\\Sharing' => $baseDir.'/../lib/Sections/Admin/Sharing.php', |
|
| 42 | + 'OCA\\Settings\\Sections\\Personal\\PersonalInfo' => $baseDir.'/../lib/Sections/Personal/PersonalInfo.php', |
|
| 43 | + 'OCA\\Settings\\Sections\\Personal\\Security' => $baseDir.'/../lib/Sections/Personal/Security.php', |
|
| 44 | + 'OCA\\Settings\\Sections\\Personal\\SyncClients' => $baseDir.'/../lib/Sections/Personal/SyncClients.php', |
|
| 45 | + 'OCA\\Settings\\Settings\\Admin\\Mail' => $baseDir.'/../lib/Settings/Admin/Mail.php', |
|
| 46 | + 'OCA\\Settings\\Settings\\Admin\\Overview' => $baseDir.'/../lib/Settings/Admin/Overview.php', |
|
| 47 | + 'OCA\\Settings\\Settings\\Admin\\Security' => $baseDir.'/../lib/Settings/Admin/Security.php', |
|
| 48 | + 'OCA\\Settings\\Settings\\Admin\\Server' => $baseDir.'/../lib/Settings/Admin/Server.php', |
|
| 49 | + 'OCA\\Settings\\Settings\\Admin\\Sharing' => $baseDir.'/../lib/Settings/Admin/Sharing.php', |
|
| 50 | + 'OCA\\Settings\\Settings\\Personal\\Additional' => $baseDir.'/../lib/Settings/Personal/Additional.php', |
|
| 51 | + 'OCA\\Settings\\Settings\\Personal\\PersonalInfo' => $baseDir.'/../lib/Settings/Personal/PersonalInfo.php', |
|
| 52 | + 'OCA\\Settings\\Settings\\Personal\\Security\\Authtokens' => $baseDir.'/../lib/Settings/Personal/Security/Authtokens.php', |
|
| 53 | + 'OCA\\Settings\\Settings\\Personal\\Security\\Password' => $baseDir.'/../lib/Settings/Personal/Security/Password.php', |
|
| 54 | + 'OCA\\Settings\\Settings\\Personal\\Security\\TwoFactor' => $baseDir.'/../lib/Settings/Personal/Security/TwoFactor.php', |
|
| 55 | + 'OCA\\Settings\\Settings\\Personal\\Security\\WebAuthn' => $baseDir.'/../lib/Settings/Personal/Security/WebAuthn.php', |
|
| 56 | + 'OCA\\Settings\\Settings\\Personal\\ServerDevNotice' => $baseDir.'/../lib/Settings/Personal/ServerDevNotice.php', |
|
| 57 | + 'OCA\\Settings\\SetupChecks\\PhpDefaultCharset' => $baseDir.'/../lib/SetupChecks/PhpDefaultCharset.php', |
|
| 58 | + 'OCA\\Settings\\SetupChecks\\PhpOutputBuffering' => $baseDir.'/../lib/SetupChecks/PhpOutputBuffering.php', |
|
| 59 | 59 | ); |