Joas Schilling
3f3f8c2f99
Fix usage of deprecated private constants
10 years ago
Robin Appelman
a7aba07dc1
block ocs in single user mode
10 years ago
Joas Schilling
f7dd16f1ac
Disable OCS api when in maintenance mode
10 years ago
Jenkins for ownCloud
b585d87d9d
Update license headers
10 years ago
Thomas Müller
2367797c17
Respect http header 'Accept-Language' on ocs and remote.php calls
10 years ago
Morris Jobke
06aef4e8b1
Revert "Updating license headers"
...
This reverts commit 6a1a4880f0
.
10 years ago
Jenkins for ownCloud
6a1a4880f0
Updating license headers
10 years ago
Lukas Reschke
886bda5f81
Refactor OC_Request into TrustedDomainHelper and IRequest
...
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
10 years ago
Bjoern Schiessle
698ecbf308
OCS API for server-to-server sharing
10 years ago
Vincent Petry
972fffbe02
Return 503 OCS response with requested format
11 years ago
Vincent Petry
2e45eb8ad6
Return 503 in public.php and OCS API when upgrade is due
...
To prevent unexpected behavior, public.php and the OCS API calls will
return 503 Service Unavailable when an upgrade is due.
11 years ago
Thomas Müller
596177727a
OCS API calls will always return English messages
11 years ago
Thomas Müller
88f6dd7db1
fixing method names
11 years ago
Thomas Müller
743addd1e3
set content-type on ocs exceptions
11 years ago
Robin Appelman
26793e1f94
switch OC::getRouter usages to OC::$server->getRouter
11 years ago
Thomas Müller
8f5c641cd8
load all apps in ocs/v1.php
11 years ago
Lukas Reschke
8a2cd0355d
Use the proper content-type
...
We should use the proper content-type `application/xml` instead of the default `text/html` here.
Backport requested.
11 years ago
Thomas Müller
66a2f3b0b9
New OCS route:
...
/ocs/cloud/user
Response:
<?xml version="1.0"?>
<ocs>
<meta>
<status>ok</status>
<statuscode>100</statuscode>
<message/>
</meta>
<data>
<id>thomas</id>
<display-name>DeepDiver</display-name>
<email>no-response@domain.tld</email>
</data>
</ocs>
12 years ago
Frank Karlitschek
f1836a997f
remove the activity call here. it is not implemented anyways. This will be provided by Activity app in the future.
12 years ago
Tom Needham
f14ce1efdc
Add quota to core api
12 years ago
kondou
9e8a6b704d
Add _many_ newlines at the end of files
12 years ago
Bart Visscher
22d759964f
Use raw PathInfo for matching urls
12 years ago
Florin Peter
3c100af132
revert changes to fbbc76f281
because master is very unstable right now
12 years ago
Tom Needham
1e1a8b2f3c
Fix typo
12 years ago
Tom Needham
66053693f8
Code style for ocs/routes.php
12 years ago
Tom Needham
59db762dfa
Change app identifier for core api routes
12 years ago
Tom Needham
5ad1b63f76
Fix api result merging.
12 years ago
Stefan Herbrechtsmeier
ab2b79cda6
add multiple domains reverse proxy support
...
Add support for a reverse proxy that handles multiple domains via different
web roots (http[s]://proxy.tld/domain.tld/owncloud).
As the reverse proxy web root is transparent for the web server the
REQUEST_URI and SCRIPT_NAME need manual adjustments. This patch replace
the direct use of this _SERVER variables with function calls and extend
this functions to overwrite the web root. Additionally it adds a Sabre
request backend that extends the Sabre_HTTP_Request to use the same
functions.
12 years ago
Tom Needham
0956cae39e
Add new /cloud/capabilities route and remove unused methods
12 years ago
Thomas Mueller
42678096bb
remove php closing tag
12 years ago
Tom Needham
c7a665a1e4
API: Tidy up routes.php, remove redundant call registration
12 years ago
Tom Needham
3cc3405536
API: Remove old code. Move remaining methods to OC_OCS_Result.
12 years ago
Frank Karlitschek
6cb3774706
make it possible to manually override the hostname and protocol if the automatic detection from ownCloud fails. This can happen in reverse proxy situations or with loadbalancers setups.
13 years ago
Felix Moeller
02ec677e3c
Style: The last two spaces
13 years ago
Felix Moeller
a4b2ea586d
Style: Remove all the dangling white spaces
13 years ago
Tom Needham
b2a1b54e9c
Detect http protocol in providers.php
13 years ago
Sam Tuke
8b01286a5d
Merged branch 'master'
13 years ago
Tom Needham
0c55ca1d0a
API: Add required auth level to OCS routes, move some routes to provisioning_api app
13 years ago
Thomas Müller
a3cda32392
Respect coding style
13 years ago
Thomas Müller
3d74c5b3ec
Respect coding style
13 years ago
Bart Visscher
4b9200f6f7
Routing: combine all routes into one set
13 years ago
Bart Visscher
6ba2623485
Move loading of routes to OC::getRouter function
13 years ago
Bart Visscher
7952c6a31c
Change access to router object to getter function
13 years ago
Tom Needham
75dbed2208
Fix the api routes
13 years ago
Bart Visscher
7426217e76
Fix /privatedata/getattribute route
13 years ago
Bart Visscher
006b127da4
Routing: Handle MethodNotAllowedException
13 years ago
Bart Visscher
28537037ae
Fixup OCS modules
13 years ago
Bart Visscher
7a24f0cd8d
Make calling ocs/v1.php/config work
13 years ago
Bart Visscher
372fdf8077
Add 'ocs' as app name to API registration
13 years ago
Tom Needham
9ffaea480f
Add the format parameter inside OC_API
13 years ago