user_cas icon indicating copy to clipboard operation
user_cas copied to clipboard

Errors in Nextcloud logs saying the included CAS.php is deprecated

Open Emi94 opened this issue 4 years ago • 3 comments

Describe the bug Nextcloud logs are flooded by errors (exact errors added to the Screenshots section) saying the included CAS.php is deprecated, but from what I see version 1.9.0 comes with the latest phpCAS 1.3.9 so what is the problem actually?

To Reproduce Steps to reproduce the behavior:

  1. Login with user_cas app
  2. See errors on Settings -> Logging

Expected behavior No errors

Screenshots image

Software (please complete the following information):

  • Server-OS: Ubuntu 18.04
  • HTTP-Server Version: Apache 2.4.29
  • PHP-Version: PHP 7.4
  • phpCAS-Library-Version: phpCAS 1.3.9 (comes bundled from my understanding)
  • ownCloud/Nextcloud Version: Nextcloud 20.0.7
  • user_cas-Version: user_cas 1.9.0

Additional context Let me know if you need other info

Emi94 avatar Mar 01 '21 14:03 Emi94

Hello @Emi94, thanks for your report, I think the message is displayed, because phpCAS encourages people to use the composer autoloader for including phpCAS from version 1.3.9 on. In user_cas, this is currently not possible, because phpCAS can only be included and loaded if it’s physically available, so we have several constraints in the logic, which define if phpCAS should be included or not. Until now it is also possible for you (as the enduser) to replace the phpCAS library and define a custom path to it in the user_cas settings panel, so there is currently no way to safely and generally include phpCAS via composer autoload.

I’ll investigate this and keep you updated if I have new findings.

Regards, Felix

felixrupp avatar Mar 05 '21 09:03 felixrupp

I'm still getting the same errors after installing phpCAS through composer and setting the plugin to use that version.

Emi94 avatar Mar 09 '21 13:03 Emi94

Hello @Emi94, thanks for your report, I think the message is displayed, because phpCAS encourages people to use the composer autoloader for including phpCAS from version 1.3.9 on. In user_cas, this is currently not possible, because phpCAS can only be included and loaded if it’s physically available, so we have several constraints in the logic, which define if phpCAS should be included or not. Until now it is also possible for you (as the enduser) to replace the phpCAS library and define a custom path to it in the user_cas settings panel, so there is currently no way to safely and generally include phpCAS via composer autoload.

I’ll investigate this and keep you updated if I have new findings.

Regards, Felix

hi i have the same question. Which version of manual of phpCAS update?

douwzy avatar Apr 26 '21 08:04 douwzy