aboutsummaryrefslogtreecommitdiffstats
path: root/ocs/v1.php
Commit message (Collapse)AuthorAgeFilesLines
* chore: Add SPDX headerAndy Scherzinger2024-05-131-26/+3
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* chore: Migrate away from OC::$server->getLoggerCôme Chilliet2024-02-131-1/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(bruteforce-protection): Don't throw a 500 when MaxDelayReached is thrownJoas Schilling2023-11-301-0/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* 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>
* Fix missing maintenance mode header for OCS requestChristoph Wurst2022-09-301-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Return 500 and the exception message (on debug) on OCSJoas Schilling2021-10-221-3/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Remove deprecated \OCP\APIRoeland Jago Douma2021-03-031-3/+3
| | | | | | | | Time to remove this forgood now. Remaining constant moved over The world is a tiny bit better Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-2/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix loading order for OCS endpointsVincent Petry2020-12-101-3/+6
| | | | | | | | | | | | | The loading order can have side effects in the way how apps register plugins, listeners, etc. Recently the order had been changed as part of cleaning up old code, but caused apps to break. This brings back the old app loading order to guarantee that apps won't break, even though it might not semantically make sense. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Remove some IRouter methodsRoeland Jago Douma2020-11-171-1/+1
| | | | | | | | | This is not the end. IRouter needs to burn. But it is a start. 🎵 we didn't start the fire 🎵 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove the matching on ancient /ocs routesRoeland Jago Douma2020-10-311-32/+5
| | | | | | | The appframework has been the default for quite some time now. So time to take proper advantage of it. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix invalid usage of \Exception::getResultChristoph Wurst2020-06-161-1/+7
| | | | | | | | | | Only OCS exceptions have a getResult method. Any other exception will cause another error due to this invalid method call. This splits the catch into a specific one for OCS and then a generic one for anything else that can't be handled. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-1/+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>
* Update license headersChristoph Wurst2019-12-051-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Make sure maintenance mode is always casted to boolJoas Schilling2019-02-221-2/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix undefined constant error for STATUS_SERVICE_UNAVAILABLEJulius Härtl2018-07-261-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Replace hardcoded status headers with calls to http_response_code()Morris Jobke2018-06-261-3/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Warn about the old OCP\API::register construct for OCSRoeland Jago Douma2018-01-171-0/+4
| | | | | | | * Add sleep * Add log message Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove "DEBUG OUTPUT:" from failing OCS API requestsMorris Jobke2018-01-091-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Nextcloud 13 is not compatible with newer than php 7.2Roeland Jago Douma2017-12-121-0/+1
| | | | | | | | | | | 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>
* OC_OCS_Response is deprecatedRoeland Jago Douma2017-09-211-4/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* 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>
* Get rid of static OCS::notFound()Morris Jobke2017-03-031-2/+10
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Clean up single user modeMorris Jobke2017-02-221-2/+1
| | | | | | | | | | | | | | Single user mode basically disables WebDAV, OCS and cron execution. Since we heavily rely on WebDAV and OCS also in the web UI it's basically useless. An admin only sees a broken interface and can't even change any settings nor sees any files. Also sharing is not possible. As this is at least the case since Nextcloud 9 and we haven't received any reports for this it seems that this feature is not used at all so I removed it. The encryption commands now rely on the well tested maintenance mode. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* log ocs exceptionsRobin Appelman2017-02-081-0/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Die in OCS v1.php on exceptionVincent Petry2016-12-161-1/+3
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* 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>
* Catch LoginExceptionRoeland Jago Douma2016-07-221-0/+2
|
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix othersJoas Schilling2016-07-211-2/+5
|
* Only login if user is not logged-inLukas Reschke2016-07-181-1/+3
|
* Make the OCS endpoint handle the new OCS AppFramework routesRoeland Jago Douma2016-07-181-0/+23
|
* load authentication apps first (#25126)Christoph Wurst2016-06-161-0/+2
| | | | | | * load authentication apps first * load session apps before all other apps
* Update license headersLukas Reschke2016-05-261-1/+1
|
* 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-1/+1
|
* update licence headers via scriptMorris Jobke2015-10-051-1/+0
|
* Reduce duplicate codeThomas Müller2015-08-031-0/+2
|
* update license headers and authorsMorris Jobke2015-06-251-0/+1
|
* block ocs in single user modeRobin Appelman2015-04-091-1/+3
|
* Disable OCS api when in maintenance modeJoas Schilling2015-04-081-1/+1
|
* Update license headersJenkins for ownCloud2015-03-261-20/+24
|
* Respect http header 'Accept-Language' on ocs and remote.php callsThomas Müller2015-03-091-2/+2
|
* Revert "Updating license headers"Morris Jobke2015-02-261-23/+21
| | | | This reverts commit 6a1a4880f0d556fb090f19a5019fec31916f5c36.
* Updating license headersJenkins for ownCloud2015-02-231-21/+23
|
* Refactor OC_Request into TrustedDomainHelper and IRequestLukas Reschke2015-02-161-1/+1
| | | | | | | | | | 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