nextcloud / jsxc.nextcloud

💬 Chat app for Nextcloud with XMPP, end-to-end encryption, video calls, file transfer & group chat
https://apps.nextcloud.com/apps/ojsxc
MIT License
47 stars 32 forks source link

OC_USER_IMAP Backend after update to 3.4.0 NC13 #104

Closed fl0w1 closed 6 years ago

fl0w1 commented 6 years ago

Hey,

after the last update to version 3.4.0 users with oc_user_imap backend cannot longer login. Right after logging in the Nextcloud 13 Server responds with internal Server Error.

Server details: Nextcloud 13.0.2 JavaScript XMPP Chat 3.4.0 Browser: Multiple Browsers tested (with and without addons)

Error Message from NextCloud Log: {"reqId":"WwfEbMtviJtFPDPNTeikpAAAAFI","level":3,"time":"2018-05-25T10:08:13+02:00","remoteAddr":"","user":"user@example.org","app":"index","method":"GET","url":"\/","message":"Exception: {\"Exception\":\"Error\",\"Message\":\"Call to undefined method OC_User_IMAP::getBackendName()\",\"Code\":0,\"Trace\":\"#0 \\/var\\/www\\/nextcloud\\/html\\/apps\\/ojsxc\\/appinfo\\/application.php(284): OCA\\OJSXC\\AppInfo\\Application::convertToRealUID('user...')\n#1 \\/var\\/www\\/nextcloud\\/html\\/apps\\/ojsxc\\/appinfo\\/routes.php(8): OCA\\OJSXC\\AppInfo\\Application->__construct()\n#2 \\/var\\/www\\/nextcloud\\/html\\/lib\\/private\\/Route\\/Router.php(351): include_once('\\/var\\/www\\/cloud....')\n#3 \\/var\\/www\\/nextcloud\\/html\\/lib\\/private\\/Route\\/Router.php(151): OC\\Route\\Router->requireRouteFile('\\/var\\/www\\/cloud....', 'ojsxc')\n#4 \\/var\\/www\\/nextcloud\\/html\\/lib\\/private\\/Route\\/Router.php(268): OC\\Route\\Router->loadRoutes()\n#5 \\/var\\/www\\/nextcloud\\/html\\/lib\\/base.php(999): OC\\Route\\Router->match('')\n#6 \\/var\\/www\\/nextcloud\\/html\\/index.php(37): OC::handleRequest()\n#7 {main}\",\"File\":\"\\/var\\/www\\/nextcloud\\/html\\/apps\\/ojsxc\\/appinfo\\/application.php\",\"Line\":366}","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko\/20100101 Firefox\/61.0","version":"13.0.2.1"}

The problem was solved by disabling the ojsxc app.

Cheers,

Florian

sualko commented 6 years ago

Do you use the internal chat backend?

fl0w1 commented 6 years ago

Yes, I do.

sualko commented 6 years ago

Can you test the above patch?

MarcelWaldvogel commented 6 years ago

According to my sources ;-), every call of getBackendName in Nextcloud itself looks like that:

Glandos commented 6 years ago

The patch works for me, with the IMAP backend. Thanks.