diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-07-11 14:26:09 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-09-26 11:55:36 +0200 |
commit | 00dc157b19834cfe558bc25a105cc509f47d7ed6 (patch) | |
tree | 590e1c4a0864b56a106e5e4e6a0f39108463f469 /apps/dav/lib/CalDAV/Publishing | |
parent | e7085aab387c90f6b5a7f8352864cc0d04bb96d1 (diff) | |
download | nextcloud-server-00dc157b19834cfe558bc25a105cc509f47d7ed6.tar.gz nextcloud-server-00dc157b19834cfe558bc25a105cc509f47d7ed6.zip |
Fix requests for browser plugin as well as for the public calendar root folder
Diffstat (limited to 'apps/dav/lib/CalDAV/Publishing')
-rw-r--r-- | apps/dav/lib/CalDAV/Publishing/PublishPlugin.php | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php b/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php index f1f3540d68c..1d45aef5a2f 100644 --- a/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php +++ b/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php @@ -91,7 +91,6 @@ class PublishPlugin extends ServerPlugin $this->server->on('method:POST', [$this, 'httpPost']); $this->server->on('propFind', [$this, 'propFind']); - $this->server->on('method:GET', [$this, 'httpGet'], 90); // 90 because it needs to be called before auth } public function propFind(PropFind $propFind, INode $node) @@ -210,31 +209,4 @@ class PublishPlugin extends ServerPlugin } } - - /** - * We intercept the GET requests to provide our shared calendars. - * - * @param Sabre\HTTP\RequestInterface $request - * @param Sabre\HTTP\ResponseInterface $response - */ - public function httpGet(RequestInterface $request, ResponseInterface $response) - { - $path = $request->getPath(); - - // TODO : Find a better way to do this - list($path, $token) = explode('/', $path); - if ($path !== 'public-calendars') { - return; - } - - // This is where the magic happens - // Find a place to put the functions getResourceIdFromToken($token) and getRessource($id) - - $this->server->transactionType = 'access-published-calendar'; - - $response->setStatus(200); - $response->setBody('Success !'); - - return false; - } } |