nextcloud-server/apps/settings/lib/SetupChecks
Ferdinand Thiessen 0563757ea4 fix(SetupCheck): Properly check public access to data directory
When checking for public (web) access to the data directory the status is not enough
as you might have a webserver that forwards to e.g. a login page.
So instead check that the content of the file matches.

For this the `.ncdata` file (renamed from `.ocdata`¹) has minimal text content
to allow checking.

¹The file was renamed from the legacy `.ocdata`, there is a repair step to remove the old one.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-08-08 22:08:42 +07:00
..
AllowedAdminRanges.php feat(security): Add public API to allow validating IP Ranges and checking for "in range" 2024-07-19 16:28:03 +07:00
AppDirsWithDifferentOwner.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
BruteForceThrottler.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
CheckServerResponseTrait.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
CheckUserCertificates.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
CodeIntegrity.php fix(IntegrityCheck): Ensure the check is run if no results are available 2024-07-03 11:37:49 +07:00
CronErrors.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
CronInfo.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
DataDirectoryProtected.php fix(SetupCheck): Properly check public access to data directory 2024-08-08 22:08:42 +07:00
DatabaseHasMissingColumns.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
DatabaseHasMissingIndices.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
DatabaseHasMissingPrimaryKeys.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
DatabasePendingBigIntConversions.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
DebugMode.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
DefaultPhoneRegionSet.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
EmailTestSuccessful.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
FileLocking.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
ForwardedForHeaders.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
HttpsUrlGeneration.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
InternetConnectivity.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
JavaScriptModules.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
JavaScriptSourceMaps.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
LegacySSEKeyFormat.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
MaintenanceWindowStart.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
MemcacheConfigured.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
MimeTypeMigrationAvailable.php feat: add setup check for needed mimetype migrations 2024-06-18 14:46:19 +07:00
MysqlUnicodeSupport.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
OcxProviders.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
OverwriteCliUrl.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
PhpDefaultCharset.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
PhpDisabledFunctions.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
PhpFreetypeSupport.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
PhpGetEnv.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
PhpMemoryLimit.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
PhpModules.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
PhpOpcacheSetup.php fix: typo 2024-07-08 15:11:35 +07:00
PhpOutdated.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
PhpOutputBuffering.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
PushService.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
RandomnessSecure.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
ReadOnlyConfig.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
SchedulingTableSize.php fix(caldav): lower scheduling table size warning 2024-07-17 11:20:49 +07:00
SecurityHeaders.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
SupportedDatabase.php refactor(SetupCheck): Make mariadb and mysql version variables 2024-06-27 16:22:42 +07:00
SystemIs64bit.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
TempSpaceAvailable.php fix(setupchecks): skip check when disk_free_space is disabled 2024-06-28 13:06:49 +07:00
TransactionIsolation.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00
WellKnownUrls.php fix(settings): make trailing slash for caldav/carddav redirects optional 2024-06-24 17:52:22 +07:00
Woff2Loading.php chore: Add SPDX header 2024-06-03 20:33:31 +07:00