aboutsummaryrefslogtreecommitdiffstats
path: root/ocs
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Check style updateCarl Schwan2022-01-131-1/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* 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-043-3/+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-053-5/+6
| | | | 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-122-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>
* Update license headersMorris Jobke2017-11-062-1/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* OC_OCS_Response is deprecatedRoeland Jago Douma2017-09-211-4/+4
| | | | 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>
* PrivateData to appRoeland Jago Douma2017-07-211-69/+0
| | | | | | | * PrivateData is an app now: https://github.com/nextcloud/privatedata * No need to load the OCS routes.php (as there is none!) 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>
* Move OC\OCS\Person to OCSControllerRoeland Jago Douma2016-11-161-8/+0
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Allow to call the files even when you are in another instance atmJoas Schilling2016-10-063-3/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Move federated sharing routes to the federatedfilesharingappRoeland Jago Douma2016-08-281-73/+0
| | | | | | | | * Move routes to app * Move routes over to the AppFramework * Fix tests There is plenty of stuff to fix properly here. But out of scope for now.
* Move /config over to Core OCSControllerRoeland Jago Douma2016-08-181-8/+0
|
* Move /cloud/user to Core appRoeland Jago Douma2016-08-091-8/+0
|
* Move getCapabilities over to CoreRoeland Jago Douma2016-08-091-7/+0
|
* Catch LoginExceptionRoeland Jago Douma2016-07-221-0/+2
|
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix othersJoas Schilling2016-07-214-6/+13
|
* 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
|
* remove unused parameterBjoern Schiessle2016-07-141-1/+1
|
* 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-263-4/+4
|
* update share permissionsBjörn Schießle2016-05-201-1/+1
|
* create re-share by owner and propagate unshare and unshare-from self requestBjörn Schießle2016-05-201-1/+41
| | | | correctly accross share owner and share initiator
* use query builder for getShare and add testsBjörn Schießle2016-05-201-1/+1
|
* move request handler for federated shares to the federated sharing appBjörn Schießle2016-05-201-1/+1
|
* move federated sharing settings to the federatedfilesharing appBjörn Schießle2016-04-221-1/+2
|
* 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
|