Commit Graph

40 Commits (f3319f62949f873420d8ebe843b26cc66fc1314f)

Author SHA1 Message Date
Joas Schilling f3319f6294
Allow to call the files even when you are in another instance atm
Signed-off-by: Joas Schilling <coding@schilljs.com>
8 years ago
Joas Schilling 0215b004da
Update with robin 8 years ago
Joas Schilling ba87db3fcc
Fix others 8 years ago
Morris Jobke 2791b8f00d Revert "occ web executor (#24957)"
This reverts commit 854352d9a0.
8 years ago
VicDeo 854352d9a0 occ web executor (#24957)
* Initial web executor

* Fix PHPDoc

Fix broken integration test

OccControllerTests do not require database access - moch them all!

Kill unused sprintf
8 years ago
Lukas Reschke aba539703c
Update license headers 8 years ago
Thomas Müller 6a6fc742dc Catch class Error on all root entrypoints 8 years ago
Thomas Müller 682821c71e Happy new year! 8 years ago
Morris Jobke b945d71384 update licence headers via script 9 years ago
Morris Jobke f63915d0c8 update license headers and authors 9 years ago
Thomas Müller a33edcd2f0 Fix singe user mode on public.php - take two 9 years ago
Jenkins for ownCloud b585d87d9d Update license headers 9 years ago
Morris Jobke 06aef4e8b1 Revert "Updating license headers"
This reverts commit 6a1a4880f0.
9 years ago
Thomas Müller 0cdc2cebbf Merge pull request #14433 from owncloud/fix-public-php
Use `getParam` instead of `server`
9 years ago
Lukas Reschke 615bc5a827 Use `getParam` instead of `server`
`server` is completely wrong here and this will not work on master. With `getParam` it will work fine though.

Testplan:
- [ ] Without patch: Share a file and try to access `http://localhost/public.php?service=files&t=THESHAREDTOKEN` => Fails
- [ ] With patch: Try the same => Works

Master only.
9 years ago
Jenkins for ownCloud 6a1a4880f0 Updating license headers 9 years ago
Lukas Reschke 886bda5f81 Refactor OC_Request into TrustedDomainHelper and IRequest
This changeset removes the static class `OC_Request` and moves the functions either into `IRequest` which is accessible via `\OC::$server::->getRequest()` or into a separated `TrustedDomainHelper` class for some helper methods which should not be publicly exposed.

This changes only internal methods and nothing on the public API. Some public functions in `util.php` have been deprecated though in favour of the new non-static functions.

Unfortunately some part of this code uses things like `__DIR__` and thus is not completely unit-testable. Where tests where possible they ahve been added though.

Fixes https://github.com/owncloud/core/issues/13976 which was requested in https://github.com/owncloud/core/pull/13973#issuecomment-73492969
9 years ago
Robin Appelman 7cb12d4bff Add sabredav plugin to check if a user has access to an app 10 years ago
Robin Appelman a05147e25c handle service not available exceptions in index, remote and public.php 10 years ago
Vincent Petry 44c1dc8153 Fix service warning 10 years ago
Vincent Petry 2e45eb8ad6 Return 503 in public.php and OCS API when upgrade is due
To prevent unexpected behavior, public.php and the OCS API calls will
return 503 Service Unavailable when an upgrade is due.
10 years ago
Lukas Reschke 7c4abce373 Move authentication to it's own call 10 years ago
Lukas Reschke ac7fb1b23e Remove legacy routing code
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
10 years ago
icewind1991 d3eee01190 Merge pull request #7599 from owncloud/public-pathinfo
Allow using pathinfo based public.php paths
10 years ago
Robin Appelman 0f1374c028 Allow using pathinfo based public.php paths 10 years ago
Thomas Müller 0db5fead8e remove some more global variable $RUNTIME_NOAPPS 10 years ago
Robin Appelman 71c1327691 Add "single user mode" which restricts access to users in the admin group
This can be enabled by setting 'singleuser' to true in config.php
11 years ago
Bjoern Schiessle 2cc0c90015 set incognito mode for public.php calls. Because in this case ownCloud should always work the same way as if no user is logged in 11 years ago
kondou 9e8a6b704d Add _many_ newlines at the end of files 11 years ago
Jörn Friedrich Dreyer 8dc6bdd96b clean up usage of DatabaseSetupException and catch Exceptions in entrypoints 11 years ago
Georg Ehrke ce14788ac0 public.php - check if maintenance mode is enabled 11 years ago
Felix Moeller 2d61f03452 More Checkstyle cleanup
This is for all LowerCaseConstant warnings
12 years ago
Thomas Müller cfa2fded05 Update public.php
respect coding style
12 years ago
Michael Gapczynski e05db00468 404 if service is not set for public.php 12 years ago
Bart Visscher 7522a23693 Remove unused RUNTIME_NOSETUPFS var 12 years ago
Robin Appelman b45d3ced79 fix remote and public.php 12 years ago
Bart Visscher 153ee9dcfa Check if app is enabled before loading in remote and public.php 12 years ago
Brice Maron 6a812644e4 Correct remote and public, and last occurence of OC:: 12 years ago
Robin Appelman e7c106d91e selective app loading for remote/public 12 years ago
Georg Ehrke 936c8ba1cc improve remote.php and create public.php 12 years ago