summaryrefslogtreecommitdiffstats
path: root/ocs/v1.php
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Return 503 OCS response with requested formatVincent Petry2014-06-301-1/+2
|
* Return 503 in public.php and OCS API when upgrade is dueVincent Petry2014-06-301-0/+8
| | | | | To prevent unexpected behavior, public.php and the OCS API calls will return 503 Service Unavailable when an upgrade is due.
* OCS API calls will always return English messagesThomas Müller2014-04-151-0/+3
|
* Merge branch 'master' into load-apps-proper-masterThomas Müller2014-03-211-3/+3
|\ | | | | | | | | | | | | Conflicts: apps/files/ajax/rawlist.php cron.php ocs/v1.php
| * Merge pull request #7649 from owncloud/routing-publicThomas Müller2014-03-171-1/+1
| |\ | | | | | | Move routing classes to an interface and expose it in the public api
| | * switch OC::getRouter usages to OC::$server->getRouterRobin Appelman2014-03-101-1/+1
| | |
| * | fixing method namesThomas Müller2014-03-121-1/+0
| | |
| * | set content-type on ocs exceptionsThomas Müller2014-03-121-0/+3
| |/
* / load all apps in ocs/v1.phpThomas Müller2014-02-181-1/+7
|/
* Use raw PathInfo for matching urlsBart Visscher2013-06-281-1/+1
|
* Merge master into ocs_api, fix conflicts.Tom Needham2012-12-141-8/+8
|\
| * Style: The last two spacesFelix Moeller2012-11-041-1/+1
| |
| * Style: Remove all the dangling white spacesFelix Moeller2012-11-041-8/+8
| |
* | Fix merge conflictsTom Needham2012-09-131-0/+1
|\|