Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-03-18 17:13:24 +0300
committerJulius Härtl <jus@bitgrid.net>2019-03-19 15:13:53 +0300
commit21425eb964833f1461ee0bbe678d746e7e24954d (patch)
tree4aabc73ee75225d1aa74872b9f72df0ffc4f8818 /core/Controller
parent5de3a0feaa96c551082453163f4837eb2f8033bb (diff)
Return 200 instead of 404 when asking for collections of a resource
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/Controller')
-rw-r--r--core/Controller/CollaborationResourcesController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Controller/CollaborationResourcesController.php b/core/Controller/CollaborationResourcesController.php
index 0697444555c..e67a59bb36c 100644
--- a/core/Controller/CollaborationResourcesController.php
+++ b/core/Controller/CollaborationResourcesController.php
@@ -166,7 +166,7 @@ class CollaborationResourcesController extends OCSController {
try {
$resource = $this->manager->getResourceForUser($resourceType, $resourceId, $this->userSession->getUser());
} catch (ResourceException $e) {
- return new DataResponse([], Http::STATUS_NOT_FOUND);
+ $resource = $this->manager->createResource($resourceType, $resourceId);
}
if (!$resource->canAccess($this->userSession->getUser())) {