aboutsummaryrefslogtreecommitdiffstats
path: root/remote.php
Commit message (Collapse)AuthorAgeFilesLines
* fix(dav): drop unwanted RemoteException classskjnldsv2024-07-301-1/+1
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore: Add SPDX headerAndy Scherzinger2024-05-261-30/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-1/+1
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* app type extended_authenticationMaxence Lange2023-04-121-0/+1
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* return proper error code when reporting exception fails in remote.phpRobin Appelman2022-10-051-33/+37
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add missing use for LoggerInterfaceCôme Chilliet2022-05-021-2/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-2/+1
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove trailing and in between spacesChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Sabre/DAV 4.0: beforeMethod is now beforeMethod:*Georg Ehrke2020-03-271-1/+1
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-1/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Do not use HTTP code OC_Response constants anymoreMorris Jobke2018-06-261-7/+7
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Server exception error pages by default with a 500 status codeMorris Jobke2018-06-261-2/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Server error/hint pages with a 500 error code to avoid it being seen instead ↵Morris Jobke2018-06-261-2/+1
| | | | | | | | | of the actual resource * found while reviewing #7205 * allow to specify a special status code Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* First step of DAV endpointRoeland Jago Douma2018-04-261-0/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Nextcloud 13 is not compatible with newer than php 7.2Roeland Jago Douma2017-12-121-0/+2
| | | | | | | | | | | Just to avoid users from trying this with a to new (untested) php version * Moved the check logic to 1 place * All directly callable scripts just require this on top * exit hard (-1) so we know scripts won't continue * Return status 500 so no sync clients will try fancy stuff Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Suppress deprecated function in \OCP\JSONLukas Reschke2017-08-011-1/+1
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Don't force the use of Accept-Language anymoreJoas Schilling2017-04-071-3/+0
| | | | | | | | | | | | | | | | | This is not intended anymore, since it falls back to force english when the header is not set. Also 0228bc6e66cbcb2848eacb41f1de6e7f63ebcb65 makes clear that the order should be: 1. User setting 2. Accept language 3. Admin default This is the case since the commit from above, unless via OCS and DAV. Both forced to accept-language falling back to english. By removing the force, it now also matches the w3 priority list: https://www.w3.org/International/questions/qa-lang-priorities Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow to call the files even when you are in another instance atmJoas Schilling2016-10-061-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix othersJoas Schilling2016-07-211-2/+3
|
* Update license headersLukas Reschke2016-05-261-1/+1
|
* Fix undefined variable $exThomas Müller2016-05-021-1/+1
|
* Catch class Error on all root entrypointsThomas Müller2016-04-201-3/+5
|
* Employ a stricter Content Security Policy on remote.phpLukas Reschke2016-04-121-0/+5
| | | | Items sent by remote.php have not to be interpreted by browsers in any way.
* All webdav endpoints within remote.php are now hardcoded - helps to prevent ↵Thomas Müller2016-04-051-1/+22
| | | | migration issues like #23610 - furthermore there is no need to dynamically lookup all the endpoints we already know
* Update author informationLukas Reschke2016-03-011-0/+1
| | | | Probably nice for the people that contributed to 9.0 to see themselves in the AUTHORS file :)
* Move findLanguage() and setLanguageFromRequest() to factoryJoas Schilling2016-01-261-1/+1
|
* Happy new year!Thomas Müller2016-01-121-2/+2
|
* Consolidate webdav code - move all to one appThomas Müller2015-10-161-1/+1
|
* deduplicate @xenopathicMorris Jobke2015-10-061-1/+1
|
* update licence headers via scriptMorris Jobke2015-10-051-1/+1
|
* Avoid logging normal exceptions in remote.phpRobin McCorkell2015-08-181-3/+8
| | | | | When the instance needs an upgrade, or a file is not found, no logging will occur to avoid filling up log files
* Fixing content type detection and handle all local printErrorPage callsThomas Müller2015-06-301-12/+29
|
* Adding request specific exception handling - now with WebDAV responses - ↵Thomas Müller2015-06-301-7/+33
| | | | refs #17192
* update license headers and authorsMorris Jobke2015-06-251-1/+0
|
* Update license headersJenkins for ownCloud2015-03-261-1/+27
|
* Respect http header 'Accept-Language' on ocs and remote.php callsThomas Müller2015-03-091-0/+3
|
* Revert "Updating license headers"Morris Jobke2015-02-261-25/+1
| | | | This reverts commit 6a1a4880f0d556fb090f19a5019fec31916f5c36.
* Updating license headersJenkins for ownCloud2015-02-231-1/+25
|
* Refactor OC_Request into TrustedDomainHelper and IRequestLukas Reschke2015-02-161-6/+7
| | | | | | | | | | 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
* Add sabredav plugin to check if a user has access to an appRobin Appelman2014-11-171-1/+3
|
* handle service not available exceptions in index, remote and public.phpRobin Appelman2014-08-041-0/+4
|
* Prevent loading apps in remote when an upgrade is dueVincent Petry2014-06-251-0/+9
|
* Move authentication to it's own callLukas Reschke2014-06-051-1/+2
|
* Remove legacy routing codeLukas Reschke2014-06-051-1/+5
| | | | | | | | | | | | | | | | | | | 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