Age | Commit message (Collapse) | Author |
|
Conflicts:
lib/private/helper.php
|
|
The codepath that is executed when executing ownCloud via CLI is different than via browser. Specifically, the config is created by the user session already in `OC_Util::getInstanceId()` by a call to `setValue`. That said, this seems to be quite a bad side-effect, but for the sake of "not breaking whatever might break if we touch this" let's keep it that way for now.
When executing the autoconfig via `php -f index.php` the said session was not setup and thus no `config/config.php` file was created resulting in an installation error.
To reproduce this try to setup ownCloud via `php -f index.php` with and without that patch. (ensure to delete all existing configs before and don't access ownCloud with a browser in the meantime)
Fixes itself.
|
|
Workaround required for IIS setups running ownCloud to prevent dataloss.
Long-term solution would be to move some configuration settings to the database
Conflicts:
lib/base.php
settings/admin.php
|
|
This lead to a lot of confusion in the past and did not really offer any value. Let's remove the port check therefore. (it's anyways not really a part of the domain)
Fixes https://github.com/owncloud/core/issues/12150 and https://github.com/owncloud/core/issues/12123 and also a problem reported by @DeepDiver1975.
|
|
Previously a JSON error page was shown to the user in-case the CSRF token was not valid. This was confusing and prevented people from login.
With this at least the login page is shown again and not a JSON error message. I consider this as sufficient since adding a new error page just for this sake would uneededly make lib/base.php even more cluttered and this is a edge-case which optimally should anyways not happen that often.
This can be tested by opening the login page, then clearing the cookies, and trying to login.
|
|
This commit will make the supported DBs for installation configurable within config.php. By default the following databases are tested: "sqlite", "mysql", "pgsql". The reason behind this is that there might be instances where we want to prevent SQLite to be used by mistake.
To test this play around with the new configuration parameter "supportedDatabases".
Conflicts:
lib/private/util.php
|
|
Conflicts:
lib/private/util.php
|
|
Ref https://github.com/owncloud/core/pull/10584#issuecomment-54677059
Backport of 2590a4dc85cb23311a9000770bf506c3953d0b04 from master
|
|
|
|
|
|
Ensures that Basic Auth works properly for APIs and removes the need for some even uglier lines of code.
|
|
At the previous point not all apps were initialized. Now the basic auth check happens together at the same location as all others.
Fixes https://github.com/owncloud/core/issues/11129
|
|
Whenever an upgrade is due, do not load extra user backends
Backport of d6bfd90bf804f6d8bb4c651e6bcf8374dc6b94b4 from master
|
|
handleRequest() is not called from remote.php or public.php which made these files party available but all included apps in there produced errors.
As the expected behaviour is anyways that a trusted domain warning is shown I moved this to init()
Fixes https://github.com/owncloud/core/issues/10064
|
|
Adds a little button to the trusted domain warning, if an admin clicks on the warning he will be redirected to ownCloud and asked whether he want to trust this domain.
By far not the cleanest code, or clean at all, but does the job and I don't see a reason to make a lot of changes for this little improvement.
|
|
Fixes https://github.com/owncloud/core/issues/10366
|
|
Remove ability to trigger DEBUG mode via cookie
|
|
|
|
|
|
|
|
|
|
|
|
This `strip_tags` seems to be completely unneeded and will cause problems with passwords containing stripped characters. (e.g. `<` or `>`)
Needs https://github.com/owncloud/core/pull/9735 to be merged first.
|
|
|
|
|
|
If not we are most likely in CLI mode. However to be able to still
generate valid URLs, we need to use the overwrite webroot instead.
Fix #9490
|
|
|
|
|
|
loadApps() had been deleted by mistake in
799205488cf82312586f99185e13df6015caa2ff
|
|
Moved OC::needUpgrade() to OCP\Util::needUpgrade() to make it accessible
form the router.
Moved maintenance + upgrade check to the router.
|
|
Load fundamental apps, before any possible customizing app may follow
|
|
This functions are deprecated and/or removed since ownCloud 7. Additionally a issubdirectory check has been added here to prevent developers to use this function in a potentially insecure way.
Port of https://github.com/owncloud/core/pull/9033
|
|
|
|
|
|
Mobile sidebar swipe
|
|
|
|
|
|
The getfile routing code was absolutely legacy and not needed anymore. Additionally \OC::$REQUESTEDAPP was never set to the actually accessed application.
This commit removes the legacy routing code and ensures that $REQUESTEDAPP is always set so that other applications (e.g. the firewall or a two-factor authentication) can intercept the currently accessed app.
Testplan:
[x] Installation works
[x] Login with DB works
[x] Logout works
[x] Login with alternate backend works (tested with user_webdavauth)
[x] Other apps are accessible
[x] Redirect on login works (e.g. index.php?redirect_url=%2Fcore%2Findex.php%2Fsettings%2Fapps%3Finstalled)
[x] Personal settings are accessible
[x] Admin settings are accessible
[x] Sharing files works
[x] DAV works
[x] OC::$REQUESTEDAPP contains the requested application and can be intercepted by other applications
|
|
Toggle app navigation not only on mobile, but on desktop as well
|
|
This prevents routes like "core/js/oc.js" to automatically load apps and
trigger their update prematurely.
|
|
|
|
Create reusable data attribute for apps setting slideup
|
|
Use Open Sans as typeface
|
|
Remove infieldlabels
|
|
Make the session available as early as possible
|
|
|
|
|
|
|
|
|
|
Add CSRF check on login and logout
|