You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"<info>Searching for reshares that have invalid uid_initiator(resharer), meaning resharer which does not have the received share mounted anymore (that he reshared with other user).</>",
@@ -188,7 +198,12 @@ protected function findInvalidReshareInitiator(InputInterface $input, OutputInte
188
198
189
199
$runExceptions = 0;
190
200
$invalidReshareInitiatorCount = 0;
191
-
$resharers = $this->getAllResharers();
201
+
202
+
if ($scopeUid == null) {
203
+
$resharers = $this->getAllResharers();
204
+
} else {
205
+
$resharers = [['uid_initiator' => $scopeUid]];
206
+
}
192
207
193
208
$resharesToFix = [];
194
209
foreach ($resharersas$resharer) {
@@ -201,6 +216,7 @@ protected function findInvalidReshareInitiator(InputInterface $input, OutputInte
201
216
]);
202
217
$tableRows = [];
203
218
try {
219
+
$this->setupFS($resharerUid);
204
220
$userFolder = $this->getUserFolder($resharerUid);
205
221
206
222
// extract all reshares for this user and check if they have mount node
@@ -218,16 +234,17 @@ protected function findInvalidReshareInitiator(InputInterface $input, OutputInte
218
234
$table->render();
219
235
$output->writeln("");
220
236
}
237
+
$this->tearDownFS();
221
238
} catch (\Exception$e) {
222
239
$runExceptions = $runExceptions + 1;
223
240
$table->setRows($tableRows);
224
241
$table->render();
225
242
$output->writeln("<info>Encountered error for user {$resharer['uid_initiator']}, command might need to be retried: </info>");
0 commit comments