From 7f2cb6ab60198e6c02b55f41cb4239314cdf691a Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Mon, 8 Feb 2016 18:30:51 +0100 Subject: Federates shares have to set a file_target The old code path is still used to get the sharing info in the webui. This requires the file_target to be set. This does not mean anything for federated shares. Fixes #22215 --- apps/federatedfilesharing/lib/federatedshareprovider.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/federatedfilesharing') diff --git a/apps/federatedfilesharing/lib/federatedshareprovider.php b/apps/federatedfilesharing/lib/federatedshareprovider.php index 05a9432a32f..0825a0e69bc 100644 --- a/apps/federatedfilesharing/lib/federatedshareprovider.php +++ b/apps/federatedfilesharing/lib/federatedshareprovider.php @@ -194,6 +194,12 @@ class FederatedShareProvider implements IShareProvider { ->setValue('token', $qb->createNamedParameter($token)) ->setValue('stime', $qb->createNamedParameter(time())); + /* + * Added to fix https://github.com/owncloud/core/issues/22215 + * Can be removed once we get rid of ajax/share.php + */ + $qb->setValue('file_target', $qb->createNamedParameter('')); + $qb->execute(); $id = $qb->getLastInsertId(); -- cgit v1.2.3