nextcloud/lib/private
Lukas Reschke 52add798d4 Do not automatically try to enable index.php-less URLs (#24539)
The current logic for mod_rewrite relies on the fact that people have properly configured ownCloud, basically it reads from the `overwrite.cli.ur
l` entry and then derives the `RewriteBase` from it.

This usually works. However, since the ownCloud packages seem to install themselves at `/owncloud` (because subfolders are cool or so…) _a lot_ of people have just created a new Virtual Host for it or have simply symlinked the path etc.

This means that `overwrite.cli.url` is wrong, which fails hard if it is used as RewriteBase since Apache does not know where it should serve files from. In the end the ownCloud instance will not be accessible anymore and users will be frustrated. Also some shared hosters like 1&1 (because using shared hosters is so awesome… ;-)) have somewhat dubious Apache configurations or use versions of mod_rewrite from the mediveal age. (because updating is money or so…)

Anyhow. This makes this explicitly an opt-in configuration flag. If `htaccess.RewriteBase` is set then it will configure index.php-less URLs, if
admins set that after installation and don't want to wait until the next ownCloud version they can run `occ maintenance:update:htaccess`.

For ownCloud 9.0 we also have to add a repair step to make sure that instances that already have a RewriteBase configured continue to use it by copying it into the config file. That way all existing URLs stay valid. That one is not in this PR since this is unneccessary in master.

Effectively this reduces another risk of breakage when updating from ownCloud 8 to ownCloud 9.

Fixes https://github.com/owncloud/core/issues/24525, https://github.com/owncloud/core/issues/24426 and probably some more.
2016-05-12 09:43:26 +02:00
..
Activity Move activity manager to the namespace 2016-05-02 11:57:24 +02:00
App Allow declaration of background jobs in info.xml 2016-05-03 08:58:12 +02:00
AppFramework Make ownCloud work again in php 7.0.6 2016-04-28 12:23:17 +02:00
Archive Move OC_Archive to \OC\Archive\Archive 2016-05-02 19:34:32 +02:00
Authentication delete the token in case an exception is thrown when decrypting the password 2016-05-11 13:36:46 +02:00
BackgroundJob Move \OC\BackgroundJob to PSR-4 2016-04-26 08:47:26 +02:00
Cache Move \OC\Cache to PSR-4 2016-04-15 09:22:37 +02:00
Command Move \OC\Command to PSR-4 2016-04-15 12:01:13 +02:00
Comments Move \OC\Comments to PSR-4 2016-04-15 15:54:20 +02:00
Console Correctly register autoloading before install.php and loading commands 2016-05-11 11:18:00 +02:00
DB do propagation in a single query 2016-04-25 16:18:59 +02:00
Diagnostics Move \OC\Diagnostics to PSR-4 2016-04-19 19:29:47 +02:00
Encryption Move \OC\Encryption to PSR-4 2016-04-22 17:34:01 +02:00
Files fix PHPDoc and other minor issues 2016-05-11 13:36:46 +02:00
Group Move \OC\Group to PSR-4 2016-05-01 13:10:07 +02:00
Hooks Move \OC\Hooks to PSR-4 2016-04-26 15:33:47 +02:00
Http/Client Move \OC\Http to PSR-4 2016-04-28 10:10:50 +02:00
IntegrityCheck Fix use statement 2016-04-18 22:06:14 +02:00
L10N Do not save the language as request lang for apps when we didn't find any 2016-05-04 08:28:13 +02:00
legacy Merge pull request #24531 from owncloud/psr4-loading-for-install-and-commands 2016-05-11 13:53:16 +02:00
Lock Merge pull request #24387 from owncloud/locking-mark-reload-free 2016-05-03 12:03:41 +02:00
Log Move \OC\Log to PSR-4 2016-05-03 08:57:26 +02:00
Mail Move \OC\Mail to PSR-4 2016-04-20 12:49:23 +02:00
Memcache allow configuration of memcached options (#23729) 2016-05-11 19:38:00 +02:00
Migration Introduce background repair steps 2016-04-26 11:56:56 +02:00
Notification Move \OC\Notification to PSR-4 2016-04-18 09:20:06 +02:00
ocs Happy new year! 2016-01-12 15:02:18 +01:00
Preview Move \OC\Preview to PSR-4 2016-04-20 15:02:44 +02:00
Repair Adding progress to web upgrade 2016-04-28 13:52:01 +02:00
Route Move \OC\Route to PSR-4 2016-04-25 21:49:07 +02:00
Search Move \OC\Search to PSR-4 2016-04-26 07:32:37 +02:00
Security [master] Ignore certificate file if it starts with file:// 2016-04-21 19:02:31 +02:00
Session throw SessionNotAvailableException if session_id returns empty string 2016-04-26 14:51:21 +02:00
Setup Move \OC\Repair to PSR-4 2016-04-22 13:00:41 +02:00
Share Send permalink in internal share notification emails 2016-05-06 16:46:59 +02:00
Share20 move federated sharing settings to the federatedfilesharing app 2016-04-22 14:55:40 +02:00
SystemTag Move \OC\SystemTag to PSR-4 2016-04-22 20:49:16 +02:00
Tagging Move \OC\Tagging to PSR-4 2016-04-20 21:24:23 +02:00
template Remove unneeded private wrapper methods 2016-05-02 11:23:14 +02:00
Updater Make update server URL configurable 2016-05-09 11:25:58 +02:00
User use the UID for creating the session token, not the login name 2016-05-11 13:36:46 +02:00
AllConfig.php Moved some files in \OC to PSR-4 2016-04-29 08:00:31 +02:00
AppConfig.php Moved some files in \OC to PSR-4 2016-04-29 08:00:31 +02:00
AppHelper.php Moved some files in \OC to PSR-4 2016-04-29 08:00:31 +02:00
Avatar.php Moved some files in \OC to PSR-4 2016-04-29 08:00:31 +02:00
AvatarManager.php Moved some files in \OC to PSR-4 2016-04-29 08:00:31 +02:00
CapabilitiesManager.php Moved some files in \OC to PSR-4 2016-04-29 08:00:31 +02:00
Config.php Moved some files in \OC to PSR-4 2016-04-29 08:00:31 +02:00
ContactsManager.php Moved some files in \OC to PSR-4 2016-04-29 08:00:31 +02:00
DatabaseException.php Moved some files in \OC to PSR-4 2016-04-29 08:00:31 +02:00
DatabaseSetupException.php Moved some files in \OC to PSR-4 2016-04-29 08:00:31 +02:00
DateTimeFormatter.php Move more of \OC to PSR-4 2016-04-29 13:13:47 +02:00
DateTimeZone.php Move more of \OC to PSR-4 2016-04-29 13:13:47 +02:00
ForbiddenException.php Move more of \OC to PSR-4 2016-04-29 13:13:47 +02:00
HintException.php Move more of \OC to PSR-4 2016-04-29 13:13:47 +02:00
HTTPHelper.php Move more of \OC to PSR-4 2016-04-29 13:13:47 +02:00
Installer.php Correctly register autoloading before install.php and loading commands 2016-05-11 11:18:00 +02:00
LargeFileHelper.php Move more of \OC to PSR-4 2016-04-29 13:13:47 +02:00
Log.php Move OC_Log_xx to \OC\Log namespace 2016-05-03 08:57:26 +02:00
NaturalSort.php Move more of \OC to PSR-4 2016-04-29 13:13:47 +02:00
NaturalSort_DefaultCollator.php Move non PSR-4 files from lib/private root to legacy 2016-04-30 11:32:22 +02:00
NavigationManager.php Move more of \OC to PSR-4 2016-04-29 13:13:47 +02:00
NeedsUpdateException.php Move more of \OC to PSR-4 2016-04-29 13:13:47 +02:00
NotSquareException.php Move more of \OC to PSR-4 2016-04-29 13:13:47 +02:00
OCSClient.php Set higher timeout limit 2016-05-05 14:20:46 -06:00
Preview.php Move more from \OC to PSR-4 2016-04-29 15:08:01 +02:00
PreviewManager.php Move more from \OC to PSR-4 2016-04-29 15:08:01 +02:00
Repair.php Allow migration steps to use automatic DI 2016-05-03 15:16:39 +02:00
RepairException.php Move more from \OC to PSR-4 2016-04-29 15:08:01 +02:00
Search.php Move more from \OC to PSR-4 2016-04-29 15:08:01 +02:00
Server.php PHPDoc and other minor fixes 2016-05-11 13:36:46 +02:00
ServerContainer.php Move more from \OC to PSR-4 2016-04-29 15:08:01 +02:00
ServerNotAvailableException.php Move more from \OC to PSR-4 2016-04-29 15:08:01 +02:00
ServiceUnavailableException.php Move more from \OC to PSR-4 2016-04-29 15:08:01 +02:00
Setup.php Do not automatically try to enable index.php-less URLs (#24539) 2016-05-12 09:43:26 +02:00
Streamer.php Move more from \OC to PSR-4 2016-04-29 15:08:01 +02:00
SubAdmin.php Move more from \OC to PSR-4 2016-04-29 15:08:01 +02:00
SystemConfig.php Move more from \OC to PSR-4 2016-04-29 15:08:01 +02:00
TagManager.php Move more from \OC to PSR-4 2016-04-29 15:08:01 +02:00
Tags.php Move more from \OC to PSR-4 2016-04-29 15:08:01 +02:00
TemplateLayout.php Move more from \OC to PSR-4 2016-04-29 15:08:01 +02:00
TempManager.php Move more from \OC to PSR-4 2016-04-29 15:08:01 +02:00
Updater.php fix PHPDoc and other minor issues 2016-05-11 13:36:46 +02:00
URLGenerator.php Move more from \OC to PSR-4 2016-04-29 15:08:01 +02:00