Custom SSO login app results in error call to members function getOwner() on null

Hello.

I’m asking here to see if anyone can assist me in understand a specific error I’m having.

So we have an SSO app that has been working great for us. However, when we’ve tried to use it on another Nextcloud instance now, we’ve gotten a problem. The first time a user logs into Nextcloud through this plugin, it results in an error. All subsequent logins works perfectly fine.

While it could easily be a problem with the app i can’t reproduce it anywhere else but this one specific nextcloud instance. So I was wondering if anybody could help me understand what is happening inside this error I get because I’m not entirely sure.

Tekniske detaljer
Ekstern adresse: REDACTED_BY_AUTHOR
Forespørsels-ID: aNCUEQumLbsaHHUvSc0c
Type: Exception
Kode: 0
Melding: Call to a member function getOwner() on null
Fil: /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php
Linje: 159

Sporing
#0 /var/www/nextcloud/lib/private/AppFramework/App.php(157): OC\AppFramework\Http\Dispatcher->dispatch()
#1 /var/www/nextcloud/lib/private/Route/Router.php(302): OC\AppFramework\App::main()
#2 /var/www/nextcloud/lib/base.php(993): OC\Route\Router->match()
#3 /var/www/nextcloud/index.php(37): OC::handleRequest()
#4 {main}

Forrige
#0 /var/www/nextcloud/apps/workflowengine/lib/Entity/File.php(142): OC\Share20\Manager->getAccessList()
#1 /var/www/nextcloud/apps/workflowengine/lib/Service/RuleMatcher.php(153): OCA\WorkflowEngine\Entity\File->isLegitimatedForUserId()
#2 /var/www/nextcloud/apps/workflowengine/lib/Service/RuleMatcher.php(124): OCA\WorkflowEngine\Service\RuleMatcher->getMatchingOperations()
#3 /var/www/nextcloud/apps/spreed/lib/Flow/Operation.php(121): OCA\WorkflowEngine\Service\RuleMatcher->getFlows()
#4 /var/www/nextcloud/apps/workflowengine/lib/AppInfo/Application.php(101): OCA\Talk\Flow\Operation->onEvent()
#5 /var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php(251): OCA\WorkflowEngine\AppInfo\Application->OCA\WorkflowEngine\AppInfo\{closure}()
#6 /var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php(73): Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
#7 /var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php(86): Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
#8 /var/www/nextcloud/lib/private/EventDispatcher/SymfonyAdapter.php(72): OC\EventDispatcher\EventDispatcher->dispatch()
#9 /var/www/nextcloud/lib/private/Files/Node/HookConnector.php(134): OC\EventDispatcher\SymfonyAdapter->dispatch()
#10 /var/www/nextcloud/lib/private/legacy/OC_Hook.php(110): OC\Files\Node\HookConnector->postCreate()
#11 /var/www/nextcloud/lib/private/Files/View.php(1281): OC_Hook::emit()
#12 /var/www/nextcloud/lib/private/Files/View.php(1209): OC\Files\View->runHooks()
#13 /var/www/nextcloud/lib/private/Files/View.php(272): OC\Files\View->basicOperation()
#14 /var/www/nextcloud/lib/private/Cache/File.php(60): OC\Files\View->mkdir()
#15 /var/www/nextcloud/lib/private/Cache/File.php(179): OC\Cache\File->getStorage()
#16 /var/www/nextcloud/lib/base.php(808): OC\Cache\File->gc()
#17 [internal function]: OC::{closure}()
#18 /var/www/nextcloud/lib/private/Hooks/EmitterTrait.php(107): call_user_func_array()
#19 /var/www/nextcloud/lib/private/Hooks/PublicEmitter.php(41): OC\Hooks\BasicEmitter->emit()
#20 /var/www/nextcloud/lib/private/User/Session.php(412): OC\Hooks\PublicEmitter->emit()
#21 /var/www/nextcloud/lib/private/User/Session.php(665): OC\User\Session->completeLogin()
#22 /var/www/nextcloud/lib/private/User/Session.php(365): OC\User\Session->loginWithToken()
#23 /var/www/nextcloud/apps/useroidc/lib/Controller/AuthController.php(145): OC\User\Session->login()
#24 /var/www/nextcloud/apps/useroidc/lib/Controller/AuthController.php(131): OCA\UserOidc\Controller\AuthController->doLogin()
#25 /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php(218): OCA\UserOidc\Controller\AuthController->login()
#26 /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php(127): OC\AppFramework\Http\Dispatcher->executeController()
#27 /var/www/nextcloud/lib/private/AppFramework/App.php(157): OC\AppFramework\Http\Dispatcher->dispatch()
#28 /var/www/nextcloud/lib/private/Route/Router.php(302): OC\AppFramework\App::main()
#29 /var/www/nextcloud/lib/base.php(993): OC\Route\Router->match()
#30 /var/www/nextcloud/index.php(37): OC::handleRequest()
#31 {main}

Any thoughts on this? Anything else I can provide to make it clearer?

are you the developer of the app? Mind sharing the code?

@ChristophWurst I am having the same problem with a few apps that prevents me from releasing them for Nextcloud 21:

Hi. I’m not the original developer but I’ve taken over development/maintenance of the app. I don’t own the app so I’ll have to ask the owner if he wants to share it.