Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backends provided no user object #451

Open
skjnldsv opened this issue Dec 5, 2024 · 1 comment
Open

Backends provided no user object #451

skjnldsv opened this issue Dec 5, 2024 · 1 comment
Labels
1. to develop bug Something isn't working

Comments

@skjnldsv
Copy link
Member

skjnldsv commented Dec 5, 2024

Cannot unlock file within groupfolder

unlocking File #4376970

In Root.php line 345:
                                    
  [OC\User\NoUserException]         
  Backends provided no user object  
                                    

Exception trace:
  at /var/www/cloud.nextcloud.com/nextcloud/lib/private/Files/Node/Root.php:345
 OC\Files\Node\Root->getUserFolder() at n/a:n/a
 call_user_func_array() at /var/www/cloud.nextcloud.com/nextcloud/lib/private/Files/Node/LazyFolder.php:64
 OC\Files\Node\LazyFolder->__call() at /var/www/cloud.nextcloud.com/nextcloud/lib/private/Files/Node/LazyRoot.php:38
 OC\Files\Node\LazyRoot->getUserFolder() at /var/www/cloud.nextcloud.com/nextcloud/apps/files_lock/lib/Service/FileService.php:47
 OCA\FilesLock\Service\FileService->getFileFromId() at /var/www/cloud.nextcloud.com/nextcloud/apps/files_lock/lib/Service/LockService.php:262
 OCA\FilesLock\Service\LockService->unlockFile() at /var/www/cloud.nextcloud.com/nextcloud/apps/files_lock/lib/Command/Lock.php:205
 OCA\FilesLock\Command\Lock->unlockFile() at /var/www/cloud.nextcloud.com/nextcloud/apps/files_lock/lib/Command/Lock.php:116
 OCA\FilesLock\Command\Lock->execute() at /var/www/cloud.nextcloud.com/nextcloud/3rdparty/symfony/console/Command/Command.php:326
 Symfony\Component\Console\Command\Command->run() at /var/www/cloud.nextcloud.com/nextcloud/core/Command/Base.php:161
 OC\Core\Command\Base->run() at /var/www/cloud.nextcloud.com/nextcloud/3rdparty/symfony/console/Application.php:1078
 Symfony\Component\Console\Application->doRunCommand() at /var/www/cloud.nextcloud.com/nextcloud/3rdparty/symfony/console/Application.php:324
 Symfony\Component\Console\Application->doRun() at /var/www/cloud.nextcloud.com/nextcloud/3rdparty/symfony/console/Application.php:175
 Symfony\Component\Console\Application->run() at /var/www/cloud.nextcloud.com/nextcloud/lib/private/Console/Application.php:183
 OC\Console\Application->run() at /var/www/cloud.nextcloud.com/nextcloud/console.php:87
 require_once() at /var/www/cloud.nextcloud.com/nextcloud/occ:11
@skjnldsv skjnldsv added 1. to develop bug Something isn't working labels Dec 5, 2024
@juliusknorr
Copy link
Member

I can reproduce, a quick fix would be #452

Though the command is rather unintuitive as it basically requires a user id to be passed to work in all cases, but that is not required from the arguments.

I'll think a bit how we can refactor the command in general to further improve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants