owncloud / owncloud/user_ldap

Apliance does not work after EE apps are installed

Open
#141 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
17
Forks
19
Avg merge
11h 40m
Merged PRs (30d)
2

Description

After installed the Appliance and register the EE trial, the owncloud does not work anymore:

{"reqId":"tQNBIyf9aqjHPJolh0je","level":3,"time":"2017-11-13T19:07:01+01:00","remoteAddr":"172.17.42.1","user":"owncloud","app":"index","method":"GET","url":"/owncloud/index.php/apps/e2eeshare/ajax/preferences.php?app=e2eeshare&key=key_server_url&defaultValue=&action=getValue","message":"Exception: {"Exception":"TypeError","Message":"Argument 4 passed to OCA\User_LDAP\User\Manager::__construct() must implement interface OCP\IAvatarManager, null given, called in /var/www/owncloud/apps/user_ldap/lib/Proxy.php on line 77","Code":0,"Trace":"
#0 /var/www/owncloud/apps/user_ldap/lib/Proxy.php(77): OCA\User_LDAP\User\Manager->__construct(Object(OC\AllConfig), Object(OCA\User_LDAP\FilesystemHelper), Object(OCA\User_LDAP\LogWrapper), NULL, Object(OCP\Image), NULL, NULL)
#1 /var/www/owncloud/apps/user_ldap/lib/Proxy.php(91): OCA\User_LDAP\Proxy->addAccess('s01')
#2 /var/www/owncloud/apps/user_ldap/lib/User_Proxy.php(48): OCA\User_LDAP\Proxy->getAccess('s01')
#3 /var/lib/univention-appcenter/apps/owncloud/data/custom/files_ldap_home/lib/LDAPReader.php(39): OCA\User_LDAP\User_Proxy->__construct(Array, Object(OCA\User_LDAP\LDAP), Object(OC\AllConfig))
#4 /var/lib/univention-appcenter/apps/owncloud/data/custom/files_ldap_home/lib/Storage.php(100): OCA\Files_LDAP_Home\LDAPReader->__construct(Array, Object(OC\AllConfig))
#5 /var/lib/univention-appcenter/apps/owncloud/data/custom/files_ldap_home/lib/Storage.php(42): OCA\Files_LDAP_Home\Storage::initiateLDAPAccess(Object(OC\AllConfig))
#6 /var/lib/univention-appcenter/apps/owncloud/data/custom/files_ldap_home/lib/Storage.php(150): OCA\Files_LDAP_Home\Storage->__construct(Array)
#7 /var/www/owncloud/lib/private/legacy/hook.php(105): OCA\Files_LDAP_Home\Storage::setup(Array)
#8 /var/www/owncloud/lib/private/Files/Filesystem.php(452): OC_Hook::emit('OC_Filesystem', 'post_initMountP...', Array)
#9 /var/www/owncloud/lib/private/Files/Node/Root.php(348): OC\Files\Filesystem::initMountPoints('owncloud')
#10 /var/www/owncloud/lib/private/Server.php(943): OC\Files\Node\Root->getUserFolder('owncloud')
#11 /var/lib/univention-appcenter/apps/owncloud/data/custom/e2eeshare/lib/AppInfo/Application.php(33): OC\Server->getUserFolder()
#12 /var/www/owncloud/lib/composer/pimple/pimple/src/Pimple/Container.php(113): OCA\E2eeShare\AppInfo\Application->OCA\E2eeShare\AppInfo\{closure}(Object(OC\AppFramework\DependencyInjection\DIContainer))
#13 /var/www/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(111): Pimple\Container->offsetGet('E2eeShare')
#14 /var/lib/univention-appcenter/apps/owncloud/data/custom/e2eeshare/lib/AppInfo/Application.php(29): OC\AppFramework\Utility\SimpleContainer->query('E2eeShare')
#15 /var/www/owncloud/lib/composer/pimple/pimple/src/Pimple/Container.php(113): OCA\E2eeShare\AppInfo\Application->OCA\E2eeShare\AppInfo\{closure}(Object(OC\AppFramework\DependencyInjection\DIContainer))
#16 /var/www/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(111): Pimple\Container->offsetGet('E2eeHooks')
#17 /var/lib/univention-appcenter/apps/owncloud/data/custom/e2eeshare/appinfo/app.php(26): OC\AppFramework\Utility\SimpleContainer->query('E2eeHooks')
#18 /var/www/owncloud/lib/private/legacy/app.php(213): require_once('/var/lib/univen...')
#19 /var/www/owncloud/lib/private/legacy/app.php(164): OC_App::requireAppFile('e2eeshare')
#20 /var/www/owncloud/lib/private/legacy/app.php(121): OC_App::loadApp('e2eeshare')
#21 /var/www/owncloud/lib/private/legacy/util.php(145): OC_App::loadApps(Array)
#22 /var/www/owncloud/lib/private/Files/Filesystem.php(265): OC_Util::setupFS('')
#23 /var/www/owncloud/lib/private/Server.php(220): OC\Files\Filesystem::getMountManager(NULL)
#24 /var/www/owncloud/lib/composer/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#25 /var/www/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(111): Pimple\Container->offsetGet('RootFolder')
#26 /var/www/owncloud/lib/private/ServerContainer.php(87): OC\AppFramework\Utility\SimpleContainer->query('RootFolder')
#27 /var/www/owncloud/lib/private/Server.php(914): OC\ServerContainer->query('RootFolder')
#28 /var/www/owncloud/lib/private/Server.php(413): OC\Server->getRootFolder()
#29 /var/www/owncloud/lib/composer/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#30 /var/www/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(111): Pimple\Container->offsetGet('AvatarManager')
#31 /var/www/owncloud/lib/private/ServerContainer.php(87): OC\AppFramework\Utility\SimpleContainer->query('AvatarManager')
#32 /var/www/owncloud/lib/private/Server.php(905): OC\ServerContainer->query('AvatarManager')
#33 /var/www/owncloud/apps/user_ldap/lib/Proxy.php(70): OC\Server->getAvatarManager()
#34 /var/www/owncloud/apps/user_ldap/lib/Proxy.php(91): OCA\User_LDAP\Proxy->addAccess('s01')
#35 /var/www/owncloud/apps/user_ldap/lib/User_Proxy.php(48): OCA\User_LDAP\Proxy->getAccess('s01')
#36 /var/www/owncloud/apps/user_ldap/appinfo/app.php(36): OCA\User_LDAP\User_Proxy->__construct(Array, Object(OCA\User_LDAP\LDAP), Object(OC\AllConfig))
#37 /var/www/owncloud/lib/private/legacy/app.php(213): require_once('/var/www/ownclo...')
#38 /var/www/owncloud/lib/private/legacy/app.php(164): OC_App::requireAppFile('user_ldap')
#39 /var/www/owncloud/lib/private/legacy/app.php(121): OC_App::loadApp('user_ldap')
#40 /var/www/owncloud/lib/base.php(898): OC_App::loadApps(Array)
#41 /var/www/owncloud/index.php(56): OC::handleRequest()
#42 {main}","File":"/var/www/owncloud/apps/user_ldap/lib/User/Manager.php","Line":84}"}
{"reqId":"Qz0bho9lGVZEh5z0zF8X","level":3,"time":"2017-11-13T19:07:01+01:00","remoteAddr":"172.17.42.1","user":"owncloud","app":"PHP","method":"GET","url":"/owncloud/ocs/v2.php/apps/e2eeshare/api/v1/checkLicense?format=json","message":"TypeError: Argument 4 passed to OCA\User_LDAP\User\Manager::__construct() must implement interface OCP\IAvatarManager, null given, called in /var/www/owncloud/apps/user_ldap/lib/Proxy.php on line 77 at /var/www/owncloud/apps/user_ldap/lib/User/Manager.php#84"}

As workaround you can remove the e2eeshare and then it works

@butonic @tomneedham @patrickjahns

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing apps/user_ldap/lib/Proxy.php around lines 70-91 and apps/user_ldap/lib/User/Manager.php around line 84, then trace the reported failure when e2eeshare is installed and an EE trial is registered. Use the supplied stack trace and workaround as the reproduction context. Done means ownCloud continues working with e2eeshare installed instead of raising the IAvatarManager TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
authentication, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.