Closed TheReal1604 closed 8 years ago
Seeing similar problems with ownCloud News (0.9.8.2) on Android - App crashes with NullPtrException and the oC log shows
{"reqId":"1nlGqb5LUzG\/noUkauzF","remoteAddr":"x.x.x.x","app":"user_ldap","message":"Error when searching: code ","level":3,"time":"2016-03-15T09:38:44+00:00"}
{"reqId":"1nlGqb5LUzG\/noUkauzF","remoteAddr":"x.x.x.x","app":"user_ldap","message":"Attempt for Paging? ","level":3,"time":"2016-03-15T09:38:44+00:00"}
{"reqId":"1nlGqb5LUzG\/noUkauzF","remoteAddr":"x.x.x.x","app":"user_ldap","message":"Exception: {\"Exception\":\"Exception\",\"Message\":\"No user available for the given login name.\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/apps\\\/user_ldap\\\/user_ldap.php(120): OCA\\\\user_ldap\\\\USER_LDAP->getLDAPUserByLoginName('xxx')\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/user\\\/manager.php(183): OCA\\\\user_ldap\\\\USER_LDAP->checkPassword(*** username and password replaced ***)\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/user\\\/session.php(219): OC\\\\User\\\\Manager->checkPassword(*** username and password replaced ***)\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/middleware\\\/security\\\/corsmiddleware.php(91): OC\\\\User\\\\Session->login(*** username and password replaced ***)\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/middleware\\\/middlewaredispatcher.php(92): OC\\\\AppFramework\\\\Middleware\\\\Security\\\\CORSMiddleware->beforeController(Object(OCA\\\\News\\\\Controller\\\\UtilityApiController), 'version')\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/http\\\/dispatcher.php(88): OC\\\\AppFramework\\\\Middleware\\\\MiddlewareDispatcher->beforeController(Object(OCA\\\\News\\\\Controller\\\\UtilityApiController), 'version')\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/app.php(110): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OCA\\\\News\\\\Controller\\\\UtilityApiController), 'version')\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/routing\\\/routeactionhandler.php(45): OC\\\\AppFramework\\\\App::main('UtilityApiContr...', 'version', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#8 [internal function]: OC\\\\AppFramework\\\\routing\\\\RouteActionHandler->__invoke(Array)\\n#9 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/route\\\/router.php(273): call_user_func(Object(OC\\\\AppFramework\\\\routing\\\\RouteActionHandler), Array)\\n#10 \\\/var\\\/www\\\/owncloud\\\/lib\\\/base.php(873): OC\\\\Route\\\\Router->match('\\\/apps\\\/news\\\/api\\\/...')\\n#11 \\\/var\\\/www\\\/owncloud\\\/index.php(39): OC::handleRequest()\\n#12 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/apps\\\/user_ldap\\\/user_ldap.php\",\"Line\":105}","level":3,"time":"2016-03-15T09:38:44+00:00"}
{"reqId":"1nlGqb5LUzG\/noUkauzF","remoteAddr":"x.x.x.x","app":"core","message":"Login failed: 'xxx' (Remote IP: 'x.x.x.x')","level":2,"time":"2016-03-15T09:38:44+00:00"}
{"reqId":"0yBxqFxajzBEeSIQMoYN","remoteAddr":"x.x.x.x","app":"user_ldap","message":"Error when searching: code ","level":3,"time":"2016-03-15T09:38:45+00:00"}
{"reqId":"0yBxqFxajzBEeSIQMoYN","remoteAddr":"x.x.x.x","app":"user_ldap","message":"Attempt for Paging? ","level":3,"time":"2016-03-15T09:38:45+00:00"}
{"reqId":"0yBxqFxajzBEeSIQMoYN","remoteAddr":"x.x.x.x","app":"user_ldap","message":"Exception: {\"Exception\":\"Exception\",\"Message\":\"No user available for the given login name.\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/apps\\\/user_ldap\\\/user_ldap.php(120): OCA\\\\user_ldap\\\\USER_LDAP->getLDAPUserByLoginName('xxx')\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/user\\\/manager.php(183): OCA\\\\user_ldap\\\\USER_LDAP->checkPassword(*** username and password replaced ***)\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/user\\\/session.php(219): OC\\\\User\\\\Manager->checkPassword(*** username and password replaced ***)\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/middleware\\\/security\\\/corsmiddleware.php(91): OC\\\\User\\\\Session->login(*** username and password replaced ***)\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/middleware\\\/middlewaredispatcher.php(92): OC\\\\AppFramework\\\\Middleware\\\\Security\\\\CORSMiddleware->beforeController(Object(OCA\\\\News\\\\Controller\\\\UtilityApiController), 'version')\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/http\\\/dispatcher.php(88): OC\\\\AppFramework\\\\Middleware\\\\MiddlewareDispatcher->beforeController(Object(OCA\\\\News\\\\Controller\\\\UtilityApiController), 'version')\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/app.php(110): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OCA\\\\News\\\\Controller\\\\UtilityApiController), 'version')\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/routing\\\/routeactionhandler.php(45): OC\\\\AppFramework\\\\App::main('UtilityApiContr...', 'version', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#8 [internal function]: OC\\\\AppFramework\\\\routing\\\\RouteActionHandler->__invoke(Array)\\n#9 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/route\\\/router.php(273): call_user_func(Object(OC\\\\AppFramework\\\\routing\\\\RouteActionHandler), Array)\\n#10 \\\/var\\\/www\\\/owncloud\\\/lib\\\/base.php(873): OC\\\\Route\\\\Router->match('\\\/apps\\\/news\\\/api\\\/...')\\n#11 \\\/var\\\/www\\\/owncloud\\\/index.php(39): OC::handleRequest()\\n#12 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/apps\\\/user_ldap\\\/user_ldap.php\",\"Line\":105}","level":3,"time":"2016-03-15T09:38:45+00:00"}
{"reqId":"0yBxqFxajzBEeSIQMoYN","remoteAddr":"x.x.x.x","app":"core","message":"Login failed: 'xxx' (Remote IP: 'x.x.x.x')","level":2,"time":"2016-03-15T09:38:45+00:00"}
ownCloud files app (1.9.1) works fine.
Sounds similar (or even the same) to #23184
Is this fix working? https://github.com/owncloud/core/pull/23237/commits/e1727477ac53e609b22b8708542be0dacd891968 .. i would try this on the evening..
No, that did not have any effect for me in https://github.com/owncloud/core/issues/23184#issuecomment-196512223
@LukasReschke Is this pull request related to this issue? (https://github.com/owncloud/core/pull/23237/commits/e1727477ac53e609b22b8708542be0dacd891968)
No.
@LukasReschke Are there some news on this issue? That's a real showstopper for me and my users in owncloud 9.0
Same problem for me with news app on android.
same issue here. LDAP and News app don't work together since upgrade. To uncover the problem, more info is needed?
Experiencing the same issue after an upgrade to OC 8.2.3 (from 8.2.2)
After upgrade to the latest version of PHP 7 on my ubuntu 14.04.4 server today, my owncloud 9.0 is finally back...
@robmlee did I understand you correctly? You upgraded to php 7 and your LDAP login via iPhone / android apps are now working?
Additional information: I don't have LDAP enabled, I'm still on php 5.5.9. It's not possible to login from android news client after upgrade to OC 9.0.0
After upgrading my Installation to php 7 all is working fine now .
I just updated my system to use php 5.6 (as it is a requirement for newer Owncloud news releases) and already updated to 9.0.1 a few days earlier. After the owncloud update I still had the above error, but now after the php update it seems to work again. So maybe its an incompatibility with php 5.5?
Hi, I can confirm: upgraded to 9.01 with LDAP backend, login issues with Android apps ("unauthorized"). Tested updating to PHP 7 without luck. Updated PHP 5.5.9 to 5.6 - fixed the issue. So it's definitely PHP related.
I suppose that some apps might not be compatible with PHP 5.4 and are causing this issue as a side effect.
Confirming findings by @rstangneth. Upgrading PHP 5.5.9 to 5.6.22 re-enables login with Android News App. Android OwnCloud (files) App was working before and does still.
Please help testing - #25598
PR was merged, closing.
@DeepDiver1975 needs forward port to master? https://github.com/owncloud/core/blob/master/apps/user_ldap/lib/User_LDAP.php#L381
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Steps to reproduce
Expected behaviour
Sign on with ldap credentials is working.
Actual behaviour
"Error 401 Unauthorized" (CloudNews), Owncloud iOS App -> "Could not connect to server", The authentication via the webinterface is working fine with the same credentials
Server configuration
Operating system: Ubuntu Server 14.04 LTS Web server: Apache2 Database: Mysql PHP version: latest in ubuntu package repos ownCloud version: (see ownCloud admin page) 9.0.0 Updated from an older ownCloud or fresh install: updatet from 8.2.2 Where did you install ownCloud from: https://software.opensuse.org/download.html?project=isv:ownCloud:community&package=owncloud
Login as admin user into your ownCloud and access http://example.com/index.php/settings/integrity/failed paste the results here. No errors have been found.
List of activated apps: News, Activity, LDAP User backend, Collaborative Tags, comments, Deleted Files, federation, gallery, notifications, pdf viewer, share files, versions, update notifications, video player
Are you using encryption: No
Are you using an external user-backend, if yes which one:ActiveDirectory
Logs
ownCloud log (data/owncloud.log)