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

User delete throwing error in Deck 1.2.0 #2569

Closed
ksteinb opened this issue Nov 17, 2020 · 1 comment
Closed

User delete throwing error in Deck 1.2.0 #2569

ksteinb opened this issue Nov 17, 2020 · 1 comment

Comments

@ksteinb
Copy link
Contributor

ksteinb commented Nov 17, 2020

Deleting Users throws an error:

An unhandled exception has been thrown:
Error: Call to undefined method OCA\Deck\Db\AssignmentMapper::findByUserId() in /var/www/html/nextcloud/apps/deck/lib/AppInfo/ApplicationLegacy.php:117
Stack trace:
#0 [internal function]: OCA\Deck\AppInfo\ApplicationLegacy::OCA\Deck\AppInfo\{closure}(Object(OC\User\User))
#1 /var/www/html/nextcloud/lib/private/Hooks/EmitterTrait.php(101): call_user_func_array(Object(Closure), Array)
#2 /var/www/html/nextcloud/lib/private/Hooks/PublicEmitter.php(40): OC\Hooks\BasicEmitter->emit('\\OC\\User', 'postDelete', Array)
#3 /var/www/html/nextcloud/lib/private/User/User.php(257): OC\Hooks\PublicEmitter->emit('\\OC\\User', 'postDelete', Array)
#4 /var/www/html/nextcloud/core/Command/User/Delete.php(65): OC\User\User->delete()
#5 /var/www/html/nextcloud/3rdparty/symfony/console/Command/Command.php(255): OC\Core\Command\User\Delete->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 /var/www/html/nextcloud/3rdparty/symfony/console/Application.php(1012): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 /var/www/html/nextcloud/3rdparty/symfony/console/Application.php(272): Symfony\Component\Console\Application->doRunCommand(Object(OC\Core\Command\User\Delete), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 /var/www/html/nextcloud/3rdparty/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /var/www/html/nextcloud/lib/private/Console/Application.php(215): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /var/www/html/nextcloud/console.php(100): OC\Console\Application->run()
#11 /var/www/html/nextcloud/occ(11): require_once('/var/www/html/n...')
#12 {main}[

Reason is probably that the function call findByUID was not changed to findByParticipant in these files:

  • lib/AppInfo/Application20.php
  • lib/AppInfo/ApplicationLegacy.php
@juliusknorr
Copy link
Member

Thanks for reporting and providing a fix 👍

Fixed with #2570 #2571

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants