Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App user_ldap is not compliant #25298

Closed
baevga opened this issue Jan 24, 2021 · 1 comment
Closed

App user_ldap is not compliant #25298

baevga opened this issue Jan 24, 2021 · 1 comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug

Comments

@baevga
Copy link

baevga commented Jan 24, 2021

Steps to reproduce

  1. Open web configuration tool of LDAP
  2. See error in logs and empty form on page
  3. Run occ command. sudo -u www-data php occ app:check-code user_ldap
  4. See bunch of errors

Expected behaviour

No errors

Actual behaviour

Module not working properly

Server configuration

Operating system: debian 10

Web server: nginx 1.14

Database: mariadb

PHP version: php-fpm 7.3

Nextcloud version: 20,0,5,2

Updated from an older Nextcloud/ownCloud or fresh install: Updated

Where did you install Nextcloud from:

Are you using external storage, if yes which one: local/smb/sftp/...

Are you using encryption: yes/no

Logs

Web server error log

Web server error log
Stack trace:
#0 {main}
  thrown in /var/www/html/nextcloud/apps/user_ldap/ajax/getConfiguration.php on line 30" while reading response header from upstream, client: 95.165.173.221, server: cloud.stroekos.ru, request: "POST /apps/user_ldap/ajax/getConfiguration.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "cloud.stroekos.ru"
2021/01/24 09:59:37 [error] 25569#25569: *2442030 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Class 'OC_JSON' not found in /var/www/html/nextcloud/apps/user_ldap/ajax/getConfiguration.php:30

Nextcloud log (data/nextcloud.log)

Nextcloud log
nalysing /var/www/html/nextcloud/apps/user_ldap/lib/Access.php
 14 errors
    line  189: OCP\Util::writeLog - Method of deprecated class must not be called
    line  197: OCP\Util::writeLog - Method of deprecated class must not be called
    line  252: OCP\Util::writeLog - Method of deprecated class must not be called
    line  276: OCP\Util::writeLog - Method of deprecated class must not be called
    line  282: OCP\Util::writeLog - Method of deprecated class must not be called
    line  368: OCP\Util::writeLog - Method of deprecated class must not be called
    line  542: OCP\Util::writeLog - Method of deprecated class must not be called
    line  549: OCP\Util::writeLog - Method of deprecated class must not be called
    line  608: OCP\Util::writeLog - Method of deprecated class must not be called
    line 1091: == - is discouraged
    line 1104: OCP\Util::writeLog - Method of deprecated class must not be called
    line 1110: OCP\Util::writeLog - Method of deprecated class must not be called
    line 1144: OCP\Util::writeLog - Method of deprecated class must not be called
    line 1155: OCP\Util::writeLog - Method of deprecated class must not be called
Analysing /var/www/html/nextcloud/apps/user_ldap/lib/User/User.php
 1 errors
    line  522: OC_Helper - Static method of private class must not be called
Analysing /var/www/html/nextcloud/apps/user_ldap/lib/Connection.php
 12 errors
    line  212: OCP\Util::writeLog - Method of deprecated class must not be called
    line  384: OCP\Util::writeLog - Method of deprecated class must not be called
    line  410: OCP\Util::writeLog - Method of deprecated class must not be called
    line  453: OCP\Util::writeLog - Method of deprecated class must not be called
    line  468: OCP\Util::writeLog - Method of deprecated class must not be called
    line  481: OCP\Util::writeLog - Method of deprecated class must not be called
    line  491: OCP\Util::writeLog - Method of deprecated class must not be called
    line  538: OCP\Util::writeLog - Method of deprecated class must not be called
    line  548: OCP\Util::writeLog - Method of deprecated class must not be called
    line  558: OCP\Util::writeLog - Method of deprecated class must not be called
    line  562: OCP\Util::writeLog - Method of deprecated class must not be called
    line  675: OCP\Util::writeLog - Method of deprecated class must not be called
Analysing /var/www/html/nextcloud/apps/user_ldap/lib/Controller/RenewPasswordController.php
 1 errors
    line  145: OC_User - Static method of private class must not be called
Analysing /var/www/html/nextcloud/apps/user_ldap/lib/User_LDAP.php
 4 errors
    line  183: Util::writeLog - Method of deprecated class must not be called
    line  269: Util::writeLog - Method of deprecated class must not be called
    line  278: Util::writeLog - Method of deprecated class must not be called
    line  356: Util::writeLog - Method of deprecated class must not be called
Analysing /var/www/html/nextcloud/apps/user_ldap/lib/Jobs/UpdateGroups.php
 17 errors
    line   69: OCP\Util::writeLog - Method of deprecated class must not be called
    line   75: OCP\Util::writeLog - Method of deprecated class must not be called
    line   85: OCP\Util::writeLog - Method of deprecated class must not be called
    line  105: OCP\Util::writeLog - Method of deprecated class must not be called
    line  106: OC_DB - Static method of private class must not be called
    line  123: OCP\Util::writeLog - Method of deprecated class must not be called
    line  133: OCP\Util::writeLog - Method of deprecated class must not be called
    line  142: OCP\Util::writeLog - Method of deprecated class must not be called
    line  151: OCP\Util::writeLog - Method of deprecated class must not be called
    line  152: OC_DB - Static method of private class must not be called
    line  158: OCP\Util::writeLog - Method of deprecated class must not be called
    line  164: OCP\Util::writeLog - Method of deprecated class must not be called
    line  173: OCP\Util::writeLog - Method of deprecated class must not be called
    line  174: OC_DB - Static method of private class must not be called
    line  180: OCP\Util::writeLog - Method of deprecated class must not be called
    line  185: OCP\Util::writeLog - Method of deprecated class must not be called
    line  233: OC_DB - Static method of private class must not be called
Analysing /var/www/html/nextcloud/apps/user_ldap/lib/Wizard.php
 8 errors
    line  304: OCP\Util::writeLog - Method of deprecated class must not be called
    line  684: OCP\Util::writeLog - Method of deprecated class must not be called
    line  707: OCP\Util::writeLog - Method of deprecated class must not be called
    line  852: OCP\Util::writeLog - Method of deprecated class must not be called
    line 1029: OCP\Util::writeLog - Method of deprecated class must not be called
    line 1049: OCP\Util::writeLog - Method of deprecated class must not be called
    line 1068: OCP\Util::writeLog - Method of deprecated class must not be called
    line 1083: OCP\Util::writeLog - Method of deprecated class must not be called
Analysing /var/www/html/nextcloud/apps/user_ldap/lib/LogWrapper.php
 1 errors
    line   38: OCP\Util::writeLog - Method of deprecated class must not be called
Analysing /var/www/html/nextcloud/apps/user_ldap/lib/UserPluginManager.php
 1 errors
    line   80: == - is discouraged
Analysing /var/www/html/nextcloud/apps/user_ldap/lib/GroupPluginManager.php
 1 errors
    line   70: == - is discouraged
Analysing /var/www/html/nextcloud/apps/user_ldap/lib/Helper.php
 1 errors
    line  168: OC_DB - Static method of private class must not be called
Analysing /var/www/html/nextcloud/apps/user_ldap/lib/FilesystemHelper.php
 1 errors
    line   45: OC_Util - Static method of private class must not be called
Analysing /var/www/html/nextcloud/apps/user_ldap/lib/AppInfo/Application.php
 1 errors
    line  111: OC_User - Static method of private class must not be called
Analysing /var/www/html/nextcloud/apps/user_ldap/lib/Group_LDAP.php
 2 errors
    line  348: != - is discouraged
    line 1220: != - is discouraged
Analysing /var/www/html/nextcloud/apps/user_ldap/ajax/clearMappings.php
 5 errors
    line   32: OC_JSON - Static method of deprecated class must not be called
    line   33: OC_JSON - Static method of deprecated class must not be called
    line   34: OC_JSON - Static method of deprecated class must not be called
    line   58: OC_JSON - Static method of deprecated class must not be called
    line   60: OC_JSON - Static method of deprecated class must not be called
Analysing /var/www/html/nextcloud/apps/user_ldap/ajax/setConfiguration.php
 4 errors
    line   29: OC_JSON - Static method of deprecated class must not be called
    line   30: OC_JSON - Static method of deprecated class must not be called
    line   31: OC_JSON - Static method of deprecated class must not be called
    line   50: OC_JSON - Static method of deprecated class must not be called
Analysing /var/www/html/nextcloud/apps/user_ldap/ajax/testConfiguration.php
 8 errors
    line   31: OC_JSON - Static method of deprecated class must not be called
    line   32: OC_JSON - Static method of deprecated class must not be called
    line   33: OC_JSON - Static method of deprecated class must not be called
    line   72: OC_JSON - Static method of deprecated class must not be called
    line   76: OC_JSON - Static method of deprecated class must not be called
    line   79: OC_JSON - Static method of deprecated class must not be called
    line   83: OC_JSON - Static method of deprecated class must not be called
    line   87: OC_JSON - Static method of deprecated class must not be called
Analysing /var/www/html/nextcloud/apps/user_ldap/ajax/getConfiguration.php
 4 errors
    line   30: OC_JSON - Static method of deprecated class must not be called
    line   31: OC_JSON - Static method of deprecated class must not be called
    line   32: OC_JSON - Static method of deprecated class must not be called
    line   42: OC_JSON - Static method of deprecated class must not be called
Analysing /var/www/html/nextcloud/apps/user_ldap/ajax/wizard.php
 15 errors
    line   33: OC_JSON - Static method of deprecated class must not be called
    line   34: OC_JSON - Static method of deprecated class must not be called
    line   35: OC_JSON - Static method of deprecated class must not be called
    line   40: OC_JSON - Static method of deprecated class must not be called
    line   46: OC_JSON - Static method of deprecated class must not be called
    line   99: OC_JSON - Static method of deprecated class must not be called
    line  103: OC_JSON - Static method of deprecated class must not be called
    line  106: OC_JSON - Static method of deprecated class must not be called
    line  115: OC_JSON - Static method of deprecated class must not be called
    line  119: OC_JSON - Static method of deprecated class must not be called
    line  122: OC_JSON - Static method of deprecated class must not be called
    line  131: OC_JSON - Static method of deprecated class must not be called
    line  138: OC_JSON - Static method of deprecated class must not be called
    line  146: OC_JSON - Static method of deprecated class must not be called
    line  149: OC_JSON - Static method of deprecated class must not be called
Analysing /var/www/html/nextcloud/apps/user_ldap/ajax/getNewServerConfigPrefix.php
 4 errors
    line   28: OC_JSON - Static method of deprecated class must not be called
    line   29: OC_JSON - Static method of deprecated class must not be called
    line   30: OC_JSON - Static method of deprecated class must not be called
    line   52: OC_JSON - Static method of deprecated class must not be called
Analysing /var/www/html/nextcloud/apps/user_ldap/ajax/deleteConfiguration.php
 5 errors
    line   30: OC_JSON - Static method of deprecated class must not be called
    line   31: OC_JSON - Static method of deprecated class must not be called
    line   32: OC_JSON - Static method of deprecated class must not be called
    line   37: OC_JSON - Static method of deprecated class must not be called
    line   40: OC_JSON - Static method of deprecated class must not be called
Deprecated file found: /var/www/html/nextcloud/apps/user_ldap/appinfo/update.php - please use repair steps
App is not compliant

Browser log

Browser log
Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...
@baevga baevga added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Jan 24, 2021
@kesselb
Copy link
Contributor

kesselb commented Jan 24, 2021

PHP Fatal error: Uncaught Error: Class 'OC_JSON' not found in

#23369 / #16194 / nextcloud/documentation#2197

App user_ldap is not compliant

not compliant is not related to your issue.

@kesselb kesselb closed this as completed Jan 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug
Projects
None yet
Development

No branches or pull requests

2 participants