|
@@ 130-132 (lines=3) @@
|
| 127 |
|
$sharedByFederatedId = isset($_POST['sharedByFederatedId']) ? $_POST['sharedByFederatedId'] : null; |
| 128 |
|
$ownerFederatedId = isset($_POST['ownerFederatedId']) ? $_POST['ownerFederatedId'] : null; |
| 129 |
|
|
| 130 |
|
if ($this->hasNull([$remote, $token, $name, $owner, $remoteId, $shareWith])) { |
| 131 |
|
return new Result(null, 400, 'server can not add remote share, missing parameter'); |
| 132 |
|
} |
| 133 |
|
|
| 134 |
|
if (!\OCP\Util::isValidFileName($name)) { |
| 135 |
|
return new Result(null, 400, 'The mountpoint name contains invalid characters.'); |
|
@@ 241-243 (lines=3) @@
|
| 238 |
|
$permission = (int)$this->request->getParam('permission', null); |
| 239 |
|
$remoteId = (int)$this->request->getParam('remoteId', null); |
| 240 |
|
|
| 241 |
|
if ($this->hasNull([$id, $token, $shareWith, $permission, $remoteId])) { |
| 242 |
|
return new Result(null, Http::STATUS_BAD_REQUEST); |
| 243 |
|
} |
| 244 |
|
|
| 245 |
|
try { |
| 246 |
|
$share = $this->federatedShareProvider->getShareById($id); |