aboutsummaryrefslogtreecommitdiffstats
path: root/ocs
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Happy new year!Thomas Müller2016-01-124-6/+5
|
* Use XMLWriter to generate responseLukas Reschke2015-11-301-18/+29
| | | | Gets rid of manual XML generation.
* Combine OCS API getUser method code into provisioning_api appRoeland Jago Douma2015-10-131-7/+0
| | | | | | Fixes #13002 Move the cloud/users/{userid} code in total to the provisioning API.
* deduplicate @xenopathicMorris Jobke2015-10-061-1/+1
|
* update licence headers via scriptMorris Jobke2015-10-052-1/+1
|
* Check if files_sharing is actually enabled before using itRobin McCorkell2015-09-091-9/+11
|
* Reduce duplicate codeThomas Müller2015-08-031-0/+2
|
* Adding ocs/v2.php with status code mapperThomas Müller2015-08-031-0/+22
|
* update license headers and authorsMorris Jobke2015-06-252-0/+2
|
* Fix usage of deprecated private constantsJoas Schilling2015-04-181-28/+30
|
* block ocs in single user modeRobin Appelman2015-04-091-1/+3
|
* Disable OCS api when in maintenance modeJoas Schilling2015-04-081-1/+1
|