Skip to content

Commit 80e3730

Browse files
blizzzbackportbot-nextcloud[bot]
authored andcommitted
fix(operation): groupfolder path is user independent
getPath returns the relativ to the user, i.e. $userid/files/$groupFolderInternalPath which is then used to contstruct the absolute path and keeping this information. By using getInernalPath() we only receive the groupfolder relativ path and can construct the correct and expected Nextcloud relative path as advertised. Signed-off-by: Arthur Schiwon <[email protected]>
1 parent 160ec10 commit 80e3730

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Operation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ protected function replacePlaceholderN(Node $node): string {
273273

274274
if (isset($storage) && $storage->instanceOfStorage(GroupFolderStorage::class)) {
275275
// group folders are always located within $DATADIR/__groupfolders/
276-
$absPath = $storage->getLocalFile($node->getPath());
276+
$absPath = $storage->getLocalFile($node->getInternalPath());
277277
$pos = strpos($absPath, '/__groupfolders/');
278278
// if the string cannot be found, the fallback is absolute path
279279
// it should never happen #famousLastWords

0 commit comments

Comments
 (0)