Skip to content

Conversation

@blizzz
Copy link
Member

@blizzz blizzz commented Oct 13, 2020

ConnectionImporter depends on LDAP backend's helper class 🙈 and if it cannot be found and instantiated occ breaks with

 php occ status
An unhandled exception has been thrown:
ArgumentCountError: Too few arguments to function OCA\LDAPContactsBackend\Command\Add::__construct(), 0 passed in /srv/http/nextcloud/stable20/lib/private/Console/Application.php on line 224 and exactly 2 expected in /srv/http/nextcloud/master/apps-repos/ldap_contacts_backend/lib/Command/Add.php:46
Stack trace:
#0 /srv/http/nextcloud/stable20/lib/private/Console/Application.php(224): OCA\LDAPContactsBackend\Command\Add->__construct()
#1 /srv/http/nextcloud/stable20/lib/private/Console/Application.php(136): OC\Console\Application->loadCommandsFromInfoXml(Array)
#2 /srv/http/nextcloud/stable20/console.php(99): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /srv/http/nextcloud/stable20/occ(11): require_once('/srv/http/nextc...')

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
@blizzz blizzz added the bug Something isn't working label Oct 13, 2020
Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐘

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
@blizzz blizzz merged commit b940d4e into master Oct 15, 2020
@MorrisJobke MorrisJobke deleted the fix/noid/unbreak-occ-when-user_ldap-not_enabled branch October 15, 2020 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants